You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/mov: fix keyframe flags for sample from chromium Issue 340865
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2162,6 +2162,11 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
|
|||||||
rap_group_index++;
|
rap_group_index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (sc->keyframe_absent
|
||||||
|
&& !sc->stps_count
|
||||||
|
&& !rap_group_present
|
||||||
|
&& st->codec->codec_type == AVMEDIA_TYPE_AUDIO)
|
||||||
|
keyframe = 1;
|
||||||
if (keyframe)
|
if (keyframe)
|
||||||
distance = 0;
|
distance = 0;
|
||||||
sample_size = sc->stsz_sample_size > 0 ? sc->stsz_sample_size : sc->sample_sizes[current_sample];
|
sample_size = sc->stsz_sample_size > 0 ? sc->stsz_sample_size : sc->sample_sizes[current_sample];
|
||||||
|
Reference in New Issue
Block a user