[FFmpeg-cvslog] r17584 - trunk/libavcodec/rv34.c

Måns Rullgård mans
Thu Feb 26 01:58:00 CET 2009


kostya <subversion at mplayerhq.hu> writes:

> Author: kostya
> Date: Wed Feb 25 09:35:37 2009
> New Revision: 17584
>
> Log:
> Since motion vectors for intra blocks are always zero, do not try to retrieve them.
>
> Modified:
>    trunk/libavcodec/rv34.c
>
> Modified: trunk/libavcodec/rv34.c
> ==============================================================================
> --- trunk/libavcodec/rv34.c	Wed Feb 25 09:09:13 2009	(r17583)
> +++ trunk/libavcodec/rv34.c	Wed Feb 25 09:35:37 2009	(r17584)
> @@ -787,6 +787,9 @@ static int rv34_decode_mv(RV34DecContext
>      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++)

This changed the result of FATE test 261:

$BUILD_PATH/ffmpeg -i $SAMPLES_PATH/real/spygames-2MB.rmvb -t 10 -an -f framecrc -

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-cvslog mailing list