Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/h2645_parse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c
index 7137af2ee4..0f98b49fbe 100644
--- a/libavcodec/h2645_parse.c
+++ b/libavcodec/h2645_parse.c
@@ -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