[FFmpeg-devel] [PATCH] avcodec/mpegvideo: also export 0, 0 motion vectors

Clément Bœsch u at pkh.me
Thu Jan 22 09:59:54 CET 2015


On Mon, Jan 19, 2015 at 11:58:09PM +0100, Michael Niedermayer wrote:
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
>  libavcodec/mpegvideo.c              |    2 --
>  tests/ref/fate/filter-codecview-mvs |   30 +++++++++++++++---------------
>  2 files changed, 15 insertions(+), 17 deletions(-)
> 
> diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
> index ce4fa59..6966572 100644
> --- a/libavcodec/mpegvideo.c
> +++ b/libavcodec/mpegvideo.c
> @@ -2138,8 +2138,6 @@ static int add_mb(AVMotionVector *mb, uint32_t mb_type,
>                    int src_x, int src_y,
>                    int direction)
>  {
> -    if (dst_x == src_x && dst_y == src_y)
> -        return 0;
>      mb->w = IS_8X8(mb_type) || IS_8X16(mb_type) ? 8 : 16;
>      mb->h = IS_8X8(mb_type) || IS_16X8(mb_type) ? 8 : 16;
>      mb->src_x = src_x;

OK I guess.

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150122/277a46ec/attachment.asc>


More information about the ffmpeg-devel mailing list