Mercurial > libavcodec.hg
diff mpeg12.c @ 717:6cba3b6196f0 libavcodec
optimization
| author | michaelni |
|---|---|
| date | Wed, 02 Oct 2002 17:07:39 +0000 |
| parents | 2ec5bd9f7116 |
| children | 16dab8296293 |
line wrap: on
line diff
--- a/mpeg12.c Wed Oct 02 16:36:43 2002 +0000 +++ b/mpeg12.c Wed Oct 02 17:07:39 2002 +0000 @@ -1604,7 +1604,10 @@ 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);
