[FFmpeg-cvslog] r22835 - trunk/libavformat/flvdec.c
cehoyos
subversion
Sun Apr 11 14:21:30 CEST 2010
Author: cehoyos
Date: Sun Apr 11 14:21:30 2010
New Revision: 22835
Log:
Set audio bit rate.
Patch by Howard Chu, hyc highlandsun com
Modified:
trunk/libavformat/flvdec.c
Modified: trunk/libavformat/flvdec.c
==============================================================================
--- trunk/libavformat/flvdec.c Sun Apr 11 13:47:33 2010 (r22834)
+++ trunk/libavformat/flvdec.c Sun Apr 11 14:21:30 2010 (r22835)
@@ -195,6 +195,8 @@ static int amf_parse_object(AVFormatCont
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);
}
More information about the ffmpeg-cvslog
mailing list