diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2013-03-21 08:03:58 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2013-03-28 06:27:28 -0400 |
commit | c3d015775388882b8a122afc337ea35108f652be (patch) | |
tree | 7fe7f18dd75300f0815595e4f66c33715a0b153b /libavformat | |
parent | 0afcf97e1ece51d29bb791698b00cd1b7ba97dcf (diff) | |
download | ffmpeg-c3d015775388882b8a122afc337ea35108f652be.tar.gz |
flvdec: use the correct audio codec id when parsing metadata
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/flvdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 403a9b5089..2821dd8c34 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -417,7 +417,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; |