mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
rawvideodec: set bit rate
Fixes #1989. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
3b1b8f88b7
commit
481c843a47
@ -72,6 +72,8 @@ static int rawvideo_read_header(AVFormatContext *ctx)
|
||||
st->codec->width = width;
|
||||
st->codec->height = height;
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user