diff h264.c @ 1330:c05c381a9c47 libavcodec

- fix PLANE_PRED8x8 prediction (H/V are swapped, this is correct!) - fix B-frame motion compensation - cleanup motion vector math and other blocks of common code
author tmmm
date Fri, 27 Jun 2003 15:05:29 +0000
parents f78341ab5fba
children 6e5d4ec4f3ab
line wrap: on
line diff
--- a/h264.c	Fri Jun 27 15:03:58 2003 +0000
+++ b/h264.c	Fri Jun 27 15:05:29 2003 +0000
@@ -1712,6 +1712,9 @@
   if(svq3){
     H = ( 5*(H/4) ) / 16;
     V = ( 5*(V/4) ) / 16;
+
+    /* required for 100% accuracy */
+    i = H; H = V; V = i;
   }else{
     H = ( 5*H+32 ) >> 6;
     V = ( 5*V+32 ) >> 6;