Browse Source

decode: Initialize ret before using it

libavcodec/decode.c:608:9: warning: variable 'ret' is
      used uninitialized whenever 'if' condition is false

(cherry picked from libav commit efddf2c09a)
tags/n3.4
Vittorio Giovara James Almer 8 years ago
parent
commit
960b4d4761
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/decode.c

+ 1
- 1
libavcodec/decode.c View File

@@ -695,7 +695,7 @@ static int compat_decode(AVCodecContext *avctx, AVFrame *frame,
int *got_frame, const AVPacket *pkt)
{
AVCodecInternal *avci = avctx->internal;
int ret;
int ret = 0;

av_assert0(avci->compat_decode_consumed == 0);



Loading…
Cancel
Save