changeset 15309:cfbd8e4b3ede

at lest this fixes build.. there's no way muxer_lavf is working right yet tho with mencoder's broken timestamps
author rfelker
date Sun, 01 May 2005 05:11:02 +0000
parents e9865b828a89
children b01679500a5e
files libmpdemux/muxer_lavf.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_lavf.c	Sun May 01 02:03:58 2005 +0000
+++ b/libmpdemux/muxer_lavf.c	Sun May 01 05:11:02 2005 +0000
@@ -180,8 +180,13 @@
 		ctx->width = stream->bih->biWidth;
 		ctx->height = stream->bih->biHeight;
 		ctx->bit_rate = 800000;
+#if (LIBAVFORMAT_BUILD >= 4624)
+		ctx->time_base.den = stream->h.dwRate;
+		ctx->time_base.num = stream->h.dwScale;
+#else
 		ctx->frame_rate = stream->h.dwRate;
 		ctx->frame_rate_base = stream->h.dwScale;
+#endif
 	}
 }