diff mpegvideo.c @ 280:3dc1ca4ba717 libavcodec

fixing epzs & mpeg1 (hopefully now really ...)
author michaelni
date Fri, 22 Mar 2002 16:51:44 +0000
parents ae5c33165d5c
children 1fc96b02142e
line wrap: on
line diff
--- a/mpegvideo.c	Fri Mar 22 04:35:46 2002 +0000
+++ b/mpegvideo.c	Fri Mar 22 16:51:44 2002 +0000
@@ -174,7 +174,7 @@
         }
     }
     
-    if (s->out_format == FMT_H263 || s->encoding) {
+    if (s->out_format == FMT_H263) {
         int size;
         /* MV prediction */
         size = (2 * s->mb_width + 2) * (2 * s->mb_height + 2);
@@ -961,9 +961,8 @@
     else if (s->h263_pred || s->h263_aic)
         s->mbintra_table[mb_x + mb_y*s->mb_width]=1;
 
-    /* update motion predictor, not for B-frames as they need the motion_val from the last P/S-Frame 
-       motion_val is needed for encodig too, as the ME needs it */
-    if (s->out_format == FMT_H263 || s->encoding) {
+    /* update motion predictor, not for B-frames as they need the motion_val from the last P/S-Frame */
+    if (s->out_format == FMT_H263) {
       if(s->pict_type!=B_TYPE){
         int xy, wrap, motion_x, motion_y;