Mercurial > libavformat.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
4154:bd4d3fee45d0 | 4155:dde5fb2506b6 |
---|---|
428 RawDVContext *c = s->priv_data; | 428 RawDVContext *c = s->priv_data; |
429 | 429 |
430 size = dv_get_packet(c->dv_demux, pkt); | 430 size = dv_get_packet(c->dv_demux, pkt); |
431 | 431 |
432 if (size < 0) { | 432 if (size < 0) { |
433 if (!c->dv_demux->sys) | |
434 return AVERROR(EIO); | |
433 size = c->dv_demux->sys->frame_size; | 435 size = c->dv_demux->sys->frame_size; |
434 if (get_buffer(s->pb, c->buf, size) <= 0) | 436 if (get_buffer(s->pb, c->buf, size) <= 0) |
435 return AVERROR(EIO); | 437 return AVERROR(EIO); |
436 | 438 |
437 size = dv_produce_packet(c->dv_demux, pkt, c->buf, size); | 439 size = dv_produce_packet(c->dv_demux, pkt, c->buf, size); |