diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-29 18:44:35 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-29 18:44:35 +0200 |
commit | 3ceeb01c06d3f59cb2050052b840e48a6445f7e0 (patch) | |
tree | ca9da9b89f6e0be4ca2bbed69d32fcc067c0ffa4 /libavformat/mov.c | |
parent | 44a7a6300d104dd453bcd5c601e9c6944fb34679 (diff) | |
download | ffmpeg-3ceeb01c06d3f59cb2050052b840e48a6445f7e0.tar.gz |
mov: only print multiple edit lists warning for actually unsupported cases
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 26fb4145e7..2899cfca91 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2624,6 +2624,7 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom) { MOVStreamContext *sc; int i, edit_count, version, edit_start_index = 0; + int unsupported = 0; if (c->fc->nb_streams < 1) return 0; @@ -2652,9 +2653,11 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom) edit_start_index = 1; } else if (i == edit_start_index && time >= 0) sc->start_time = time; + else + unsupported = 1; } - if (edit_count > 1) + if (unsupported) av_log(c->fc, AV_LOG_WARNING, "multiple edit list entries, " "a/v desync might occur, patch welcome\n"); |