Unified · Split
| @@ -157,7 +157,8 @@ static int hevc_mp4toannexb_filter(AVBSFContext *ctx, AVPacket *out) · 156 unmodified lines | ||
| 157 | 157 | nalu_type = (bytestream2_peek_byte(&gb) >> 1) & 0x3f; |
| 158 | 158 | |
| 159 | 159 | /* prepend extradata to IRAP frames */ |
| 160 | − is_irap = nalu_type >= 16 && nalu_type <= 23; | |
| 160 | + is_irap = nalu_type >= HEVC_NAL_BLA_W_LP && | |
| 161 | + nalu_type <= HEVC_NAL_RSV_IRAP_VCL23; | |
| 161 | 162 | add_extradata = is_irap && !got_irap; |
| 162 | 163 | extra_size = add_extradata * ctx->par_out->extradata_size; |
| 163 | 164 | got_irap |= is_irap; |