Commit 3ceeb01c authored by Michael Niedermayer's avatar Michael Niedermayer

mov: only print multiple edit lists warning for actually unsupported cases

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 44a7a630
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment