Browse Source

flvdec: use the correct audio codec id when parsing metadata

tags/n2.0
Justin Ruggles 12 years ago
parent
commit
c3d0157753
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/flvdec.c

+ 2
- 1
libavformat/flvdec.c View File

@@ -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;


Loading…
Cancel
Save