avformat/mccdec: dont pass NULL to bytestream2_put_buffer()

Fixes: passing NULL pointer

Found-by: iceray-Li
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2026-05-17 19:22:44 +02:00
committed by michaelni
parent 7ac3d83e7a
commit 2bfc7ce3ec

View File

@@ -313,7 +313,8 @@ static int mcc_read_header(AVFormatContext *s)
if (v >= 16 && v <= 35) {
int idx = v - 16;
bytestream2_put_buffer(&pb, aliases[idx].value, aliases[idx].len);
if (aliases[idx].len)
bytestream2_put_buffer(&pb, aliases[idx].value, aliases[idx].len);
} else {
uint8_t vv;