Commit 399e8fe4 authored by bcoudurier's avatar bcoudurier

return error when dv audio extraction fails

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11913 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7218a978
...@@ -1553,7 +1553,9 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -1553,7 +1553,9 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
if (mov->dv_demux && sc->dv_audio_container) { if (mov->dv_demux && sc->dv_audio_container) {
dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size); dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size);
av_free(pkt->data); 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 #endif
pkt->stream_index = sc->ffindex; pkt->stream_index = sc->ffindex;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment