aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-02-11 22:37:44 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-02-11 22:37:44 +0000
commit300aa2b039ab5c3ebcfb8fd31a547494e36d4979 (patch)
treeaa04e51719508da46292edf6613044cc7f432c64
parente6920f2445309bb05c1ae26f983e6cf247bb8101 (diff)
downloadffmpeg-300aa2b039ab5c3ebcfb8fd31a547494e36d4979.tar.gz
return error when dv audio extraction fails
Originally committed as revision 11913 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mov.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index a0555d3780..c1d5e7c78e 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1553,7 +1553,9 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
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;