Commit 96470ca2 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mov: allow seeking back to the begin even if nothing is marked as keyframe

Fixes Ticket 3663
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d2eacbb7
......@@ -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;
......
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