changeset 57:4efb718f4dc6 libavcodec

fixed mpeg2 interlaced DCT
author glantau
date Sat, 11 Aug 2001 22:07:21 +0000
parents 41791691746f
children 0e0a24def67a
files mpegvideo.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Sat Aug 11 19:15:52 2001 +0000
+++ b/mpegvideo.c	Sat Aug 11 22:07:21 2001 +0000
@@ -790,8 +790,8 @@
             add_dct(s, block[2], 2, dest_y + dct_offset, dct_linesize);
             add_dct(s, block[3], 3, dest_y + dct_offset + 8, dct_linesize);
 
-            add_dct(s, block[4], 4, dest_cb, dct_linesize >> 1);
-            add_dct(s, block[5], 5, dest_cr, dct_linesize >> 1);
+            add_dct(s, block[4], 4, dest_cb, s->linesize >> 1);
+            add_dct(s, block[5], 5, dest_cr, s->linesize >> 1);
         } else {
             /* dct only in intra block */
             put_dct(s, block[0], 0, dest_y, dct_linesize);
@@ -799,8 +799,8 @@
             put_dct(s, block[2], 2, dest_y + dct_offset, dct_linesize);
             put_dct(s, block[3], 3, dest_y + dct_offset + 8, dct_linesize);
 
-            put_dct(s, block[4], 4, dest_cb, dct_linesize >> 1);
-            put_dct(s, block[5], 5, dest_cr, dct_linesize >> 1);
+            put_dct(s, block[4], 4, dest_cb, s->linesize >> 1);
+            put_dct(s, block[5], 5, dest_cr, s->linesize >> 1);
         }
     }
  the_end: