]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libkvazaar.c
h264: add H264_ prefix to the NAL unit types
[ffmpeg] / libavcodec / libkvazaar.c
index 89b024a3792d66a1b2ad65eb7dc28105d2e908f2..19122e07175d16c0f4409991e2410d1cc3bf62eb 100644 (file)
@@ -80,8 +80,8 @@ static av_cold int libkvazaar_init(AVCodecContext *avctx)
     cfg->width  = avctx->width;
     cfg->height = avctx->height;
 
-    cfg->framerate =
-      avctx->time_base.den / (double)(avctx->time_base.num * avctx->ticks_per_frame);
+    cfg->framerate_num   = avctx->time_base.den;
+    cfg->framerate_denom = avctx->time_base.num * avctx->ticks_per_frame;
     cfg->target_bitrate = avctx->bit_rate;
     cfg->vui.sar_width  = avctx->sample_aspect_ratio.num;
     cfg->vui.sar_height = avctx->sample_aspect_ratio.den;