Commit 4f026f9d authored by kostya's avatar kostya

Since motion vectors for intra blocks are always zero, do not try to retrieve them.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17584 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2e9e45ed
...@@ -787,6 +787,9 @@ static int rv34_decode_mv(RV34DecContext *r, int block_type) ...@@ -787,6 +787,9 @@ static int rv34_decode_mv(RV34DecContext *r, int block_type)
case RV34_MB_B_DIRECT: case RV34_MB_B_DIRECT:
//surprisingly, it uses motion scheme from next reference frame //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]; 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(j = 0; j < 2; j++)
for(i = 0; i < 2; i++) for(i = 0; i < 2; i++)
for(k = 0; k < 2; k++) for(k = 0; k < 2; k++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment