summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorTing Fu <ting.fu@intel.com>2021-06-04 10:22:46 +0800
committerGuo Yejun <yejun.guo@intel.com>2021-06-09 09:18:02 +0800
commite01bf559dfaeaadac8112af4ad4689901a344b92 (patch)
tree10d832c7f406ecc9080c08e22464c76ba1d014a3 /libavfilter
parent22d99589d8147913a2fad8ba23fca24f6d3f92c3 (diff)
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>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_drawtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 382d589e26..c4c09894e4 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -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;