changeset 13669:8f12e583f50b

10l...autoaspect was always applied to muxer aspect if using newer libavcodec...hope this is ok
author rfelker
date Mon, 18 Oct 2004 12:26:45 +0000
parents 4780969312f6
children b0c81a814148
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Mon Oct 18 09:21:23 2004 +0000
+++ b/libmpcodecs/ve_lavc.c	Mon Oct 18 12:26:45 2004 +0000
@@ -543,13 +543,14 @@
 	    return 0;
 	}
     }
-    else if (lavc_param_autoaspect)
+    else if (lavc_param_autoaspect) {
 #if LIBAVCODEC_BUILD >= 4687
 	lavc_venc_context->sample_aspect_ratio = av_d2q((float)d_width/d_height*height / width, 255);
 #else
 	lavc_venc_context->aspect_ratio =
 #endif
 	mux_v->aspect = (float)d_width/d_height;
+    }
 
     /* keyframe interval */
     if (lavc_param_keyint >= 0) /* != -1 */