diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-04-24 03:30:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-04-25 03:24:59 +0200 |
commit | cae0f2bc550312c99655057f8ffab5b59556ceeb (patch) | |
tree | 50e4f09fd6f9dc7e6b6ca07a0c23abb82f231048 | |
parent | 191950d1bfc3924d1b54f236b2c35149ba4487a1 (diff) | |
download | ffmpeg-cae0f2bc550312c99655057f8ffab5b59556ceeb.tar.gz |
doc/examples/qsv_transcode: Initialize pointer before free
Fixees: CID1517023 Uninitialized pointer read
Sponsored-by: Sovereign Tech Fund
Reviewed-by: "Xiang, Haihao" <haihao.xiang@intel.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | doc/examples/qsv_transcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/qsv_transcode.c b/doc/examples/qsv_transcode.c index 8e843ddd84..665a76af2e 100644 --- a/doc/examples/qsv_transcode.c +++ b/doc/examples/qsv_transcode.c @@ -342,7 +342,7 @@ int main(int argc, char **argv) { const AVCodec *enc_codec; int ret = 0; - AVPacket *dec_pkt; + AVPacket *dec_pkt = NULL; if (argc < 5 || (argc - 5) % 2) { av_log(NULL, AV_LOG_ERROR, "Usage: %s <input file> <encoder> <output file>" |