mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/mov: allow seeking back to the begin even if nothing is marked as keyframe
Fixes Ticket 3663 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d2eacbb754
commit
96470ca22b
@ -2157,7 +2157,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
|
||||
if (sc->keyframe_absent
|
||||
&& !sc->stps_count
|
||||
&& !rap_group_present
|
||||
&& st->codec->codec_type == AVMEDIA_TYPE_AUDIO)
|
||||
&& (st->codec->codec_type == AVMEDIA_TYPE_AUDIO || (i==0 && j==0)))
|
||||
keyframe = 1;
|
||||
if (keyframe)
|
||||
distance = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user