Browse Source

additional recovery for the badly broken streams

Originally committed as revision 16438 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Roman Shaposhnik 16 years ago
parent
commit
6d8b21f3e8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/dv.c

+ 2
- 0
libavformat/dv.c View File

@@ -430,6 +430,8 @@ static int dv_read_packet(AVFormatContext *s, AVPacket *pkt)
size = dv_get_packet(c->dv_demux, pkt);

if (size < 0) {
if (!c->dv_demux->sys)
return AVERROR(EIO);
size = c->dv_demux->sys->frame_size;
if (get_buffer(s->pb, c->buf, size) <= 0)
return AVERROR(EIO);


Loading…
Cancel
Save