Browse Source

rawvideodec: set bit rate

Fixes #1989.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n1.1
Paul B Mahol 13 years ago
parent
commit
481c843a47
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/rawvideodec.c

+ 2
- 0
libavformat/rawvideodec.c View File

@@ -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…
Cancel
Save