1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

flvdec: avoid unitialized use of a struct member

CC: libav-stable@libav.org
Bug-Id: CID 718141
This commit is contained in:
Vittorio Giovara 2014-10-20 12:56:42 +01:00
parent e73d26bbd6
commit f22aa6b841

View File

@ -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;
}