Commit f22aa6b8 authored by Vittorio Giovara's avatar Vittorio Giovara

flvdec: avoid unitialized use of a struct member

CC: libav-stable@libav.org
Bug-Id: CID 718141
parent e73d26bb
...@@ -879,6 +879,7 @@ skip: ...@@ -879,6 +879,7 @@ skip:
} else { } else {
AVCodecContext ctx; AVCodecContext ctx;
ctx.sample_rate = sample_rate; 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); flv_set_audio_codec(s, st, &ctx, flags & FLV_AUDIO_CODECID_MASK);
sample_rate = ctx.sample_rate; sample_rate = ctx.sample_rate;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment