flvdec: avoid unitialized use of a struct member

CC: libav-stable@libav.org
Bug-Id: CID 718141
pull/87/merge
Vittorio Giovara 10 years ago
parent e73d26bbd6
commit f22aa6b841
  1. 1
      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;
}

Loading…
Cancel
Save