Mercurial > libavformat.hg
changeset 4348:1ce2aaf9c918 libavformat
Splits the totalbitrate in a videodatarate and audiodatarate part.
Patch by Stefan de Konink stefan konink de
author | benoit |
---|---|
date | Mon, 02 Feb 2009 16:10:46 +0000 |
parents | 932720e90fc5 |
children | 96dba41bad7f |
files | flvenc.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flvenc.c Mon Feb 02 16:05:50 2009 +0000 +++ b/flvenc.c Mon Feb 02 16:10:46 2009 +0000 @@ -214,7 +214,7 @@ 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 @@ } 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);