mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-24 08:48:37 +00:00
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:
committed by
michaelni
parent
7ac3d83e7a
commit
2bfc7ce3ec
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user