mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
mov: only print multiple edit lists warning for actually unsupported cases
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
44a7a6300d
commit
3ceeb01c06
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user