mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/vf_drawtext.c: fix CID 1485003
CID 1485003: Memory - illegal accesses (UNINIT) Using uninitialized value "sd". Signed-off-by: Ting Fu <ting.fu@intel.com>
This commit is contained in:
parent
22d99589d8
commit
e01bf559df
@ -1554,7 +1554,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||
AVFrameSideData *sd;
|
||||
int loop = 1;
|
||||
|
||||
if (s->text_source == AV_FRAME_DATA_DETECTION_BBOXES && sd) {
|
||||
if (s->text_source == AV_FRAME_DATA_DETECTION_BBOXES) {
|
||||
sd = av_frame_get_side_data(frame, AV_FRAME_DATA_DETECTION_BBOXES);
|
||||
if (sd) {
|
||||
header = (AVDetectionBBoxHeader *)sd->data;
|
||||
|
Loading…
Reference in New Issue
Block a user