]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rawvideodec.c
Merge commit 'bd255f9feb4deea4c990e582f0ba3b90d7b64b4c'
[ffmpeg] / libavformat / rawvideodec.c
index b2ca663d0beff9851781c039f47407e82e81a07f..a35f957fdd9e7cabd96772c404c110e3b675e49d 100644 (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;
 }