Browse Source

avcodec: fix uninitialized variable read

This cna happen if the user tries to call the new decode API for
subtitles.

Fixes CID 1402071.

(cherry picked from commit b4b8ca24f62473528949fe047085eb084364124b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1.8
wm4 Michael Niedermayer 9 years ago
parent
commit
2f8356df12
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/utils.c

+ 1
- 1
libavcodec/utils.c View File

@@ -2719,7 +2719,7 @@ void avsubtitle_free(AVSubtitle *sub)

static int do_decode(AVCodecContext *avctx, AVPacket *pkt)
{
int got_frame;
int got_frame = 0;
int ret;

av_assert0(!avctx->internal->buffer_frame->buf[0]);


Loading…
Cancel
Save