mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 10:52:20 +00:00
decode: Initialize ret before using it
libavcodec/decode.c:608:9: warning: variable 'ret' is used uninitialized whenever 'if' condition is false
This commit is contained in:
parent
839010aca9
commit
efddf2c09a
@ -590,7 +590,7 @@ static int compat_decode(AVCodecContext *avctx, AVFrame *frame,
|
||||
int *got_frame, AVPacket *pkt)
|
||||
{
|
||||
AVCodecInternal *avci = avctx->internal;
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
av_assert0(avci->compat_decode_consumed == 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user