[FFmpeg-cvslog] flvdec: avoid unitialized use of a struct member
Vittorio Giovara
git at videolan.org
Tue Oct 21 22:27:30 CEST 2014
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Mon Oct 20 12:56:42 2014 +0100| [f22aa6b841dc54fa1dd804303885b1e230a5f629] | committer: Vittorio Giovara
flvdec: avoid unitialized use of a struct member
CC: libav-stable at libav.org
Bug-Id: CID 718141
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f22aa6b841dc54fa1dd804303885b1e230a5f629
---
libavformat/flvdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 56c932c..1c92cc5 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;
}
More information about the ffmpeg-cvslog
mailing list