Mercurial > libavformat.hg
diff dv.c @ 4155:dde5fb2506b6 libavformat
additional recovery for the badly broken streams
author | romansh |
---|---|
date | Mon, 05 Jan 2009 17:50:13 +0000 |
parents | 8af7a177b17d |
children | c3102b189cb6 |
line wrap: on
line diff
--- a/dv.c Sun Jan 04 23:31:31 2009 +0000 +++ b/dv.c Mon Jan 05 17:50:13 2009 +0000 @@ -430,6 +430,8 @@ 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);