Commit 8ed9d34a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c3d01577'

* commit 'c3d01577':
  flvdec: use the correct audio codec id when parsing metadata
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 24cfe91a c3d01577
......@@ -415,7 +415,8 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
flv_set_video_codec(s, vstream, num_val, 0);
} else
if (!strcmp(key, "audiocodecid") && acodec) {
flv_set_audio_codec(s, astream, acodec, num_val);
int id = ((int)num_val) << FLV_AUDIO_CODECID_OFFSET;
flv_set_audio_codec(s, astream, acodec, id);
} else
if (!strcmp(key, "audiosamplerate") && acodec) {
acodec->sample_rate = num_val;
......
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