diff h263dec.c @ 717:6cba3b6196f0 libavcodec

optimization
author michaelni
date Wed, 02 Oct 2002 17:07:39 +0000
parents 85b071dfc7e3
children 16dab8296293
line wrap: on
line diff
--- a/h263dec.c	Wed Oct 02 16:36:43 2002 +0000
+++ b/h263dec.c	Wed Oct 02 17:07:39 2002 +0000
@@ -362,7 +362,12 @@
             h = s->height - y;
             if (h > 16)
                 h = 16;
-            offset = y * s->linesize;
+
+            if(s->pict_type==B_TYPE)
+                offset = 0;
+            else
+                offset = y * s->linesize;
+
             if(s->pict_type==B_TYPE || (!s->has_b_frames)){
                 src_ptr[0] = s->current_picture[0] + offset;
                 src_ptr[1] = s->current_picture[1] + (offset >> 2);