Originally committed as revision 16438 to svn://svn.ffmpeg.org/ffmpeg/trunk
Roman Shaposhnik authored on 2009/01/06 02:50:13... | ... |
@@ -430,6 +430,8 @@ static int dv_read_packet(AVFormatContext *s, AVPacket *pkt) |
430 | 430 |
size = dv_get_packet(c->dv_demux, pkt); |
431 | 431 |
|
432 | 432 |
if (size < 0) { |
433 |
+ if (!c->dv_demux->sys) |
|
434 |
+ return AVERROR(EIO); |
|
433 | 435 |
size = c->dv_demux->sys->frame_size; |
434 | 436 |
if (get_buffer(s->pb, c->buf, size) <= 0) |
435 | 437 |
return AVERROR(EIO); |