changeset 16515:1218c5859ce8

10l: fully working DXN profile support require XviD 1.1.x. Earlier version will work but will lack VBV support
author gpoirier
date Sun, 18 Sep 2005 17:22:04 +0000
parents 2543bee2d752
children 89ead8b64b69
files libmpcodecs/ve_xvid4.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_xvid4.c	Sun Sep 18 13:11:24 2005 +0000
+++ b/libmpcodecs/ve_xvid4.c	Sun Sep 18 17:22:04 2005 +0000
@@ -801,9 +801,11 @@
 	else
 		create->max_bframes = 0;
 
+#if XVID_API >= XVID_MAKE_API(4,1)
 	/* dxn: always write divx5 userdata */
 	if(selected_profile->flags & PROFILE_DXN)
 		create->global |= XVID_GLOBAL_DIVX5_USERDATA;
+#endif
 	
 	create->max_key_interval = xvidenc_max_key_interval;
 	create->frame_drop_ratio = xvidenc_frame_drop_ratio;
@@ -841,10 +843,12 @@
 
 	/* VBV */
 
+#if XVID_API >= XVID_MAKE_API(4,1)
 	pass2->vbv_size = selected_profile->max_vbv_size;
 	pass2->vbv_initial = (selected_profile->max_vbv_size*3)>>2; /* 75% */
 	pass2->vbv_maxrate = selected_profile->max_bitrate;
 	pass2->vbv_peakrate = selected_profile->vbv_peakrate*3;
+#endif
 // XXX: xvidcore currently provides a "peak bits over 3 seconds" constraint.
 // according to the latest dxn literature, a 1 second constraint is now used