diff options
author | Howard Chu <hyc@highlandsun.com> | 2010-04-11 12:21:30 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-04-11 12:21:30 +0000 |
commit | 7e939205d9c2d8bae9f122ba09fd16569f962f5b (patch) | |
tree | 3417a9b0759223e1f4953a70a08cbccb0e7c6891 /libavformat/flvdec.c | |
parent | f8fea468b2a540651eae731bccc954dbfd71d79d (diff) | |
download | ffmpeg-7e939205d9c2d8bae9f122ba09fd16569f962f5b.tar.gz |
Set audio bit rate.
Patch by Howard Chu, hyc highlandsun com
Originally committed as revision 22835 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 437ec9b785..24a414e17d 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -195,6 +195,8 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst if(!strcmp(key, "duration")) s->duration = num_val * AV_TIME_BASE; else if(!strcmp(key, "videodatarate") && vcodec && 0 <= (int)(num_val * 1024.0)) vcodec->bit_rate = num_val * 1024.0; + else if(!strcmp(key, "audiodatarate") && acodec && 0 <= (int)(num_val * 1024.0)) + acodec->bit_rate = num_val * 1024.0; } else if (amf_type == AMF_DATA_TYPE_STRING) av_metadata_set(&s->metadata, key, str_val); } |