]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hevc_mp4toannexb_bsf.c
h264: revert 1189af429211ac650aac730368a6cf5b23756605.
[ffmpeg] / libavcodec / hevc_mp4toannexb_bsf.c
index 5cc642b0d3a9e6ed126fda26b144bb2b4b5725c2..09bce5b34c24d5fedd9ed12bedc7b216e1f9a319 100644 (file)
@@ -55,8 +55,8 @@ static int hevc_extradata_to_annexb(AVBSFContext *ctx)
         int type = bytestream2_get_byte(&gb) & 0x3f;
         int cnt  = bytestream2_get_be16(&gb);
 
-        if (!(type == NAL_VPS || type == NAL_SPS || type == NAL_PPS ||
-              type == NAL_SEI_PREFIX || type == NAL_SEI_SUFFIX)) {
+        if (!(type == HEVC_NAL_VPS || type == HEVC_NAL_SPS || type == HEVC_NAL_PPS ||
+              type == HEVC_NAL_SEI_PREFIX || type == HEVC_NAL_SEI_SUFFIX)) {
             av_log(ctx, AV_LOG_ERROR, "Invalid NAL unit type in extradata: %d\n",
                    type);
             ret = AVERROR_INVALIDDATA;