mirror of https://git.ffmpeg.org/ffmpeg.git
lavc/vaapi_encode: Fix potential use of uninitialized value
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
This commit is contained in:
parent
061c86a717
commit
5211ad1acd
|
@ -273,7 +273,7 @@ static int vaapi_encode_issue(AVCodecContext *avctx,
|
|||
VAAPIEncodePicture *pic = base_pic->priv;
|
||||
VAAPIEncodeSlice *slice;
|
||||
VAStatus vas;
|
||||
int err, i;
|
||||
int err = 0, i;
|
||||
char data[MAX_PARAM_BUFFER_SIZE];
|
||||
size_t bit_len;
|
||||
av_unused AVFrameSideData *sd;
|
||||
|
|
Loading…
Reference in New Issue