Mercurial > libavformat.hg
changeset 5062:8d81bf3822ac libavformat
mov_read_packet: if dv_get_packet fails, return exactly its error value
instead of always -1 (makes no real difference currently since dv_get_packet
always returns -1 so far).
author | reimar |
---|---|
date | Wed, 24 Jun 2009 08:50:46 +0000 |
parents | 5ff6a72c9686 |
children | dcaea581e24d |
files | mov.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Wed Jun 24 08:23:40 2009 +0000 +++ b/mov.c Wed Jun 24 08:50:46 2009 +0000 @@ -2107,8 +2107,9 @@ dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size); av_free(pkt->data); pkt->size = 0; - if (dv_get_packet(mov->dv_demux, pkt) < 0) - return -1; + ret = dv_get_packet(mov->dv_demux, pkt); + if (ret < 0) + return ret; } #endif pkt->stream_index = sc->ffindex;