Mercurial > libavformat.hg
changeset 4155:dde5fb2506b6 libavformat
additional recovery for the badly broken streams
author | romansh |
---|---|
date | Mon, 05 Jan 2009 17:50:13 +0000 |
parents | bd4d3fee45d0 |
children | ccc2608599a5 |
files | dv.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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);