Commit 481c843a authored by Paul B Mahol's avatar Paul B Mahol

rawvideodec: set bit rate

Fixes #1989.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 3b1b8f88
...@@ -72,6 +72,8 @@ static int rawvideo_read_header(AVFormatContext *ctx) ...@@ -72,6 +72,8 @@ static int rawvideo_read_header(AVFormatContext *ctx)
st->codec->width = width; st->codec->width = width;
st->codec->height = height; st->codec->height = height;
st->codec->pix_fmt = pix_fmt; st->codec->pix_fmt = pix_fmt;
st->codec->bit_rate = av_rescale_q(avpicture_get_size(st->codec->pix_fmt, width, height),
(AVRational){8,1}, st->time_base);
return 0; return 0;
} }
......
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