mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avcodec/libdav1d: fix null pointer dereference in LCEVC side data handling
ff_frame_new_side_data() may set sd to NULL and return 0 when side_data_pref() determines that existing side data should be preferred. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@@ -459,6 +459,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
bytestream2_get_bytes_left(&gb), &sd);
|
||||
if (res < 0)
|
||||
return res;
|
||||
if (!sd)
|
||||
break;
|
||||
|
||||
bytestream2_get_bufferu(&gb, sd->data, sd->size);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user