Commit f334cbd7 authored by alex's avatar alex

lame bit_rate calculation


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4632 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 39f98718
......@@ -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:
......
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