diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-04-27 22:25:41 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-07-02 21:57:18 +0200 |
commit | 462bd44b032c660abb8d450d342adea3aba89e06 (patch) | |
tree | 9f653cab3e62599e06adf57c38daa856ef36faa5 | |
parent | 97b2ab15de964d9455aa902ab616881f76d2cb67 (diff) | |
download | ffmpeg-462bd44b032c660abb8d450d342adea3aba89e06.tar.gz |
fftools/ffmpeg_enc: Initialize fd
Fixes: CID1520677 Uninitialized pointer read
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | fftools/ffmpeg_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index 863d1a43ed..0b3f3f101a 100644 --- a/fftools/ffmpeg_enc.c +++ b/fftools/ffmpeg_enc.c @@ -474,7 +474,7 @@ void enc_stats_write(OutputStream *ost, EncStats *es, AVRational tbi = (AVRational){ 0, 1}; int64_t ptsi = INT64_MAX; - const FrameData *fd; + const FrameData *fd = NULL; if (frame ? frame->opaque_ref : pkt->opaque_ref) { fd = (const FrameData*)(frame ? frame->opaque_ref->data : pkt->opaque_ref->data); |