diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-12-04 15:50:33 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-12-04 15:52:58 +0000 |
commit | 481c843a47671d17f7e19392d33ee8089b950e4a (patch) | |
tree | 379542841be00449f95766c9d36038a6899e1f77 /libavformat/rawvideodec.c | |
parent | 3b1b8f88b73ea855de86909564713cff709c64e3 (diff) | |
download | ffmpeg-481c843a47671d17f7e19392d33ee8089b950e4a.tar.gz |
rawvideodec: set bit rate
Fixes #1989.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/rawvideodec.c')
-rw-r--r-- | libavformat/rawvideodec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rawvideodec.c b/libavformat/rawvideodec.c index b2ca663d0b..a35f957fdd 100644 --- a/libavformat/rawvideodec.c +++ b/libavformat/rawvideodec.c @@ -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; } |