diff dv.c @ 8014:07d8986fbea7 libavcodec

replacing frame_rate and frame_rate_base with an AVRational time_base
author romansh
date Tue, 07 Oct 2008 16:59:18 +0000
parents 3ec8f8660152
children 4eac1822bc65
line wrap: on
line diff
--- a/dv.c	Tue Oct 07 16:07:15 2008 +0000
+++ b/dv.c	Tue Oct 07 16:59:18 2008 +0000
@@ -1048,7 +1048,7 @@
     s->picture.key_frame = 1;
     s->picture.pict_type = FF_I_TYPE;
     avctx->pix_fmt = s->sys->pix_fmt;
-    avctx->time_base = (AVRational){s->sys->frame_rate_base, s->sys->frame_rate};
+    avctx->time_base = s->sys->time_base;
     avcodec_set_dimensions(avctx, s->sys->width, s->sys->height);
     if(avctx->get_buffer(avctx, &s->picture) < 0) {
         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");