Commit 8e80b76e authored by cehoyos's avatar cehoyos

Set audio bit rate.

Patch by Howard Chu, hyc highlandsun com 


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22835 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e4af97f5
......@@ -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);
}
......
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