changeset 759:21b506d700cc libavcodec

fixing msmpeg4v3 encoding at bitrates <128k
author michaelni
date Sun, 20 Oct 2002 17:02:41 +0000
parents cca620e89cf0
children e858fe220ce0
files msmpeg4.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/msmpeg4.c	Sat Oct 19 23:48:08 2002 +0000
+++ b/msmpeg4.c	Sun Oct 20 17:02:41 2002 +0000
@@ -369,7 +369,8 @@
     s->mv_table_index = 1; /* only if P frame */
     s->use_skip_mb_code = 1; /* only if P frame */
     s->per_mb_rl_table = 0;
-    s->inter_intra_pred= (s->width*s->height < 320*240 && s->bit_rate<=II_BITRATE && s->pict_type==P_TYPE);
+    if(s->msmpeg4_version==4)
+        s->inter_intra_pred= (s->width*s->height < 320*240 && s->bit_rate<=II_BITRATE && s->pict_type==P_TYPE);
 
     if (s->pict_type == I_TYPE) {
         s->no_rounding = 1;