From f22aa6b841dc54fa1dd804303885b1e230a5f629 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Mon, 20 Oct 2014 12:56:42 +0100 Subject: [PATCH] flvdec: avoid unitialized use of a struct member CC: libav-stable@libav.org Bug-Id: CID 718141 --- libavformat/flvdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 56c932c77c..1c92cc5757 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -879,6 +879,7 @@ skip: } else { AVCodecContext ctx; ctx.sample_rate = sample_rate; + ctx.bits_per_coded_sample = bits_per_coded_sample; flv_set_audio_codec(s, st, &ctx, flags & FLV_AUDIO_CODECID_MASK); sample_rate = ctx.sample_rate; }