mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
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>
This commit is contained in:
parent
191950d1bf
commit
cae0f2bc55
@ -342,7 +342,7 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
const AVCodec *enc_codec;
|
const AVCodec *enc_codec;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
AVPacket *dec_pkt;
|
AVPacket *dec_pkt = NULL;
|
||||||
|
|
||||||
if (argc < 5 || (argc - 5) % 2) {
|
if (argc < 5 || (argc - 5) % 2) {
|
||||||
av_log(NULL, AV_LOG_ERROR, "Usage: %s <input file> <encoder> <output file>"
|
av_log(NULL, AV_LOG_ERROR, "Usage: %s <input file> <encoder> <output file>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user