summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_parser.c
diff options
context:
space:
mode:
authorMickaƫl Raulet <mraulet@insa-rennes.fr>2014-05-17 01:09:32 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-17 01:14:51 +0200
commite2760de60514b949c0a5584d797d933f711f5b14 (patch)
tree0d71cad7fbc514f027c8c982f275778fa64f1bda /libavcodec/hevc_parser.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_parser.c')
-rw-r--r--libavcodec/hevc_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c
index dc1f6d5a38..96dbb59308 100644
--- a/libavcodec/hevc_parser.c
+++ b/libavcodec/hevc_parser.c
@@ -169,7 +169,7 @@ static inline int parse_nal_units(AVCodecParserContext *s, AVCodecContext *avctx
s->picture_structure = h->picture_struct;
s->field_order = h->picture_struct;
- if (h->nal_unit_type >= 16 && h->nal_unit_type <= 23) {
+ if (IS_IRAP(h)) {
s->key_frame = 1;
sh->no_output_of_prior_pics_flag = get_bits1(gb);
}