mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lame bit_rate calculation
Originally committed as revision 4632 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
90448512c4
commit
4209fad989
@ -267,6 +267,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
|
||||
st->codec->height = height;
|
||||
st->codec->time_base.den = frame_rate;
|
||||
st->codec->time_base.num = frame_rate_base;
|
||||
st->codec->bit_rate = frame_size * 1/av_q2d(st->codec->time_base) * 8;
|
||||
|
||||
return 0;
|
||||
fail:
|
||||
|
Loading…
x
Reference in New Issue
Block a user