mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02: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>
(cherry picked from commit 2bfc7ce3ec)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -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