Mercurial > libavformat.hg
changeset 3034:e8cf328bb609 libavformat
return error when dv audio extraction fails
author | bcoudurier |
---|---|
date | Mon, 11 Feb 2008 22:37:44 +0000 |
parents | 619970c01fc0 |
children | f5de7bad2bb9 |
files | mov.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Mon Feb 11 22:34:43 2008 +0000 +++ b/mov.c Mon Feb 11 22:37:44 2008 +0000 @@ -1553,7 +1553,9 @@ if (mov->dv_demux && sc->dv_audio_container) { dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size); av_free(pkt->data); - dv_get_packet(mov->dv_demux, pkt); + pkt->size = 0; + if (dv_get_packet(mov->dv_demux, pkt) < 0) + return -1; } #endif pkt->stream_index = sc->ffindex;