diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-20 12:56:42 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-21 14:37:48 +0100 |
commit | f22aa6b841dc54fa1dd804303885b1e230a5f629 (patch) | |
tree | a491c1040dcad9a140f3e02b3bd05040dc49f803 /libavformat/flvdec.c | |
parent | e73d26bbd65f1ac5fc73ef3fd24cab1bed8ba2e2 (diff) | |
download | ffmpeg-f22aa6b841dc54fa1dd804303885b1e230a5f629.tar.gz |
flvdec: avoid unitialized use of a struct member
CC: libav-stable@libav.org
Bug-Id: CID 718141
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |