summaryrefslogtreecommitdiff
path: root/libavformat/flvenc.c
diff options
context:
space:
mode:
authorStefan de Konink <stefan@.konink.de>2009-02-02 16:10:46 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2009-02-02 16:10:46 +0000
commit426a6f34a0f8a1132af80fdbf912d577d20524dd (patch)
tree5b284d3975e654f15619ca71fc6ffe8015b9395e /libavformat/flvenc.c
parent9a354fe3f98af0e33cb62014fef6d3e513a8f28e (diff)
downloadffmpeg-426a6f34a0f8a1132af80fdbf912d577d20524dd.tar.gz
Splits the totalbitrate in a videodatarate and audiodatarate part.
Patch by Stefan de Konink stefan konink de Originally committed as revision 16944 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r--libavformat/flvenc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 1f0ea5cbcf..63accbb0cb 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -214,7 +214,7 @@ static int flv_write_header(AVFormatContext *s)
put_amf_double(pb, video_enc->height);
put_amf_string(pb, "videodatarate");
- put_amf_double(pb, s->bit_rate / 1024.0);
+ put_amf_double(pb, video_enc->bit_rate / 1024.0);
put_amf_string(pb, "framerate");
put_amf_double(pb, framerate);
@@ -224,6 +224,9 @@ static int flv_write_header(AVFormatContext *s)
}
if(audio_enc){
+ put_amf_string(pb, "audiodatarate");
+ put_amf_double(pb, audio_enc->bit_rate / 1024.0);
+
put_amf_string(pb, "audiosamplerate");
put_amf_double(pb, audio_enc->sample_rate);