summaryrefslogtreecommitdiffstats
path: root/libavformat/dv.c
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2009-01-05 17:50:13 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2009-01-05 17:50:13 +0000
commit6d8b21f3e816615f5553d992fdd96d4e7253309e (patch)
treea5374a60478cb63371093d2305e689418028bdb9 /libavformat/dv.c
parent91d553c38674ee2b657888da5981d113bf14c19b (diff)
downloadffmpeg-streaming-6d8b21f3e816615f5553d992fdd96d4e7253309e.zip
ffmpeg-streaming-6d8b21f3e816615f5553d992fdd96d4e7253309e.tar.gz
additional recovery for the badly broken streams
Originally committed as revision 16438 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/dv.c')
-rw-r--r--libavformat/dv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index f7a0146..a0e07e9 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -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);
OpenPOWER on IntegriCloud