comparison mov.c @ 3034:e8cf328bb609 libavformat

return error when dv audio extraction fails
author bcoudurier
date Mon, 11 Feb 2008 22:37:44 +0000
parents 619970c01fc0
children 62181fbfc128
comparison
equal deleted inserted replaced
3033:619970c01fc0 3034:e8cf328bb609
1551 av_get_packet(s->pb, pkt, sample->size); 1551 av_get_packet(s->pb, pkt, sample->size);
1552 #ifdef CONFIG_DV_DEMUXER 1552 #ifdef CONFIG_DV_DEMUXER
1553 if (mov->dv_demux && sc->dv_audio_container) { 1553 if (mov->dv_demux && sc->dv_audio_container) {
1554 dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size); 1554 dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size);
1555 av_free(pkt->data); 1555 av_free(pkt->data);
1556 dv_get_packet(mov->dv_demux, pkt); 1556 pkt->size = 0;
1557 if (dv_get_packet(mov->dv_demux, pkt) < 0)
1558 return -1;
1557 } 1559 }
1558 #endif 1560 #endif
1559 pkt->stream_index = sc->ffindex; 1561 pkt->stream_index = sc->ffindex;
1560 pkt->dts = sample->timestamp; 1562 pkt->dts = sample->timestamp;
1561 if (sc->ctts_data) { 1563 if (sc->ctts_data) {