Mercurial > libavcodec.hg
changeset 9040:71620eeff338 libavcodec
Since motion vectors for intra blocks are always zero, do not try to retrieve them.
author | kostya |
---|---|
date | Wed, 25 Feb 2009 08:35:37 +0000 |
parents | d4002371b3d2 |
children | 05e82eb11983 |
files | rv34.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rv34.c Tue Feb 24 22:24:34 2009 +0000 +++ b/rv34.c Wed Feb 25 08:35:37 2009 +0000 @@ -787,6 +787,9 @@ case RV34_MB_B_DIRECT: //surprisingly, it uses motion scheme from next reference frame next_bt = s->next_picture_ptr->mb_type[s->mb_x + s->mb_y * s->mb_stride]; + if(IS_INTRA(next_bt)) + fill_rectangle(s->current_picture_ptr->motion_val[0][s->mb_x * 2 + s->mb_y * 2 * s->b8_stride], 2, 2, s->b8_stride, 0, 4); + else for(j = 0; j < 2; j++) for(i = 0; i < 2; i++) for(k = 0; k < 2; k++)