Commit 6d8b21f3 authored by Roman Shaposhnik's avatar Roman Shaposhnik

additional recovery for the badly broken streams

Originally committed as revision 16438 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 91d553c3
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment