aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-02-11 14:10:29 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-02-11 14:10:29 +0000
commit4f0e712ecbeb699af5677912b143f74b5fbbd116 (patch)
tree9037662d011d6e9de9211e777ec05c7d52fa712b /libavformat
parentf1618fd939be124555c98f453fc3a8f36e02fc37 (diff)
downloadffmpeg-4f0e712ecbeb699af5677912b143f74b5fbbd116.tar.gz
more correct and simpler
Originally committed as revision 11904 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 151bd60ca2..d0a315757d 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1539,20 +1539,13 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
sc->ffindex, sample->pos);
return -1;
}
-#ifdef CONFIG_DV_DEMUXER
- if (sc->dv_audio_container) {
- dv_get_packet(mov->dv_demux, pkt);
- dprintf(s, "dv audio pkt size %d\n", pkt->size);
- } else {
-#endif
av_get_packet(s->pb, pkt, sample->size);
#ifdef CONFIG_DV_DEMUXER
- if (mov->dv_demux) {
- void *pkt_destruct_func = pkt->destruct;
+ if (mov->dv_demux && sc->dv_audio_container) {
dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size);
- pkt->destruct = pkt_destruct_func;
+ av_free(pkt->data);
+ dv_get_packet(mov->dv_demux, pkt);
}
- }
#endif
pkt->stream_index = sc->ffindex;
pkt->dts = sample->timestamp;