]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hevc_parser.c
Merge commit '34e2ce5dde073244ccb2b62f930e96fe612690f7'
[ffmpeg] / libavcodec / hevc_parser.c
index dc1f6d5a38dc8cf8916c9338b6ef414b93568c86..96dbb593082841d5afe465473a18e116b2500583 100644 (file)
@@ -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);
             }