]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h2645_parse.c
avcodec/motionpixels: Don't check for errors for complete VLC
[ffmpeg] / libavcodec / h2645_parse.c
index 7137af2ee48787d9e0323f50b066c26190170f78..0f98b49fbe2df6a46c726ae7485d0d6b60509fd0 100644 (file)
@@ -501,6 +501,9 @@ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length,
         if (ret < 0)
             return ret;
 
+        /* Reset type in case it contains a stale value from a previously parsed NAL */
+        nal->type = 0;
+
         if (codec_id == AV_CODEC_ID_HEVC)
             ret = hevc_parse_nal_header(nal, logctx);
         else