diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-29 18:50:18 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-29 18:50:18 +0200 |
commit | 594b1fcb28ec36893e0c269ba10b83f783467160 (patch) | |
tree | 63106e9bb5e7d5101c0a57e18fa9839153f7f44a /libavformat/mov.c | |
parent | 3ceeb01c06d3f59cb2050052b840e48a6445f7e0 (diff) | |
download | ffmpeg-594b1fcb28ec36893e0c269ba10b83f783467160.tar.gz |
mov: add av_dlog() to dump edit lists.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 2899cfca91..3bf6dcc971 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2637,9 +2637,11 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom) if ((uint64_t)edit_count*12+8 > atom.size) return AVERROR_INVALIDDATA; + av_dlog(c->fc, "track[%i].edit_count = %i\n", c->fc->nb_streams-1, edit_count); for (i=0; i<edit_count; i++){ int64_t time; int64_t duration; + int rate; if (version == 1) { duration = avio_rb64(pb); time = avio_rb64(pb); @@ -2647,7 +2649,7 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom) duration = avio_rb32(pb); /* segment duration */ time = (int32_t)avio_rb32(pb); /* media time */ } - avio_rb32(pb); /* Media rate */ + rate = avio_rb32(pb); if (i == 0 && time == -1) { sc->empty_duration = duration; edit_start_index = 1; @@ -2655,13 +2657,15 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom) sc->start_time = time; else unsupported = 1; + + av_dlog(c->fc, "duration=%"PRId64" time=%"PRId64" rate=%f\n", + duration, time, rate / 65536.0); } if (unsupported) av_log(c->fc, AV_LOG_WARNING, "multiple edit list entries, " "a/v desync might occur, patch welcome\n"); - av_dlog(c->fc, "track[%i].edit_count = %i\n", c->fc->nb_streams-1, edit_count); return 0; } |