mirror of https://git.ffmpeg.org/ffmpeg.git
return error when dv audio extraction fails
Originally committed as revision 11913 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e6920f2445
commit
300aa2b039
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue