mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
flvdec: avoid unitialized use of a struct member
CC: libav-stable@libav.org Bug-Id: CID 718141
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user