Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMickaƫl Raulet <mraulet@insa-rennes.fr>2014-05-17 03:09:32 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-05-17 03:14:51 +0400
commite2760de60514b949c0a5584d797d933f711f5b14 (patch)
tree0d71cad7fbc514f027c8c982f275778fa64f1bda /libavcodec/hevc.c
parent93cade48254ae96da96a70cefab2d45921dfb92d (diff)
hevc: fix key_frame as an IRAP
it was always 1 before with ISOBMFF(cherry picked from commit fb1402b1ec78d80acd6ced76bf78d65560965c4c) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 6fadef3d23..c9fa31900f 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -373,7 +373,7 @@ static int hls_slice_header(HEVCContext *s)
ff_hevc_clear_refs(s);
}
sh->no_output_of_prior_pics_flag = 0;
- if (s->nal_unit_type >= 16 && s->nal_unit_type <= 23)
+ if (IS_IRAP(s))
sh->no_output_of_prior_pics_flag = get_bits1(gb);
if (s->nal_unit_type == NAL_CRA_NUT && s->last_eos == 1)
sh->no_output_of_prior_pics_flag = 1;
@@ -2862,6 +2862,7 @@ static int hevc_decode_frame(AVCodecContext *avctx, void *data, int *got_output,
s->is_md5 = 0;
if (s->is_decoded) {
+ s->ref->frame->key_frame = IS_IRAP(s);
av_log(avctx, AV_LOG_DEBUG, "Decoded frame with POC %d.\n", s->poc);
s->is_decoded = 0;
}