X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvp9.c;h=4e2ed53745554f0b1b04b9cb3c71279d5e7198ed;hb=1125c71fd761c6677d6d6f6615f963cc485b31a2;hp=93b3c96e23e7959a584cf01840ccbf4ab53c8a05;hpb=c2876c0181d170ed9d4d962599f5b65ba4e85178;p=ffmpeg diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 93b3c96e23e..4e2ed537455 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -1273,6 +1273,7 @@ static void find_ref_mvs(VP9Context *s, } AV_ZERO32(pmv); + clamp_mv(pmv, pmv, s); #undef INVALID_MV #undef RETURN_MV #undef RETURN_SCALE_MV @@ -3285,7 +3286,7 @@ static void decode_b(AVCodecContext *ctx, int row, int col, } // emulated overhangs if the stride of the target buffer can't hold. This - // allows to support emu-edge and so on even if we have large block + // makes it possible to support emu-edge and so on even if we have large block // overhangs emu[0] = (col + w4) * 8 > f->linesize[0] || (row + h4) > s->rows; @@ -4105,7 +4106,7 @@ static int vp9_decode_frame(AVCodecContext *ctx, void *frame, tile_row, s->tiling.log2_tile_rows, s->sb_rows); if (s->pass != 2) { for (tile_col = 0; tile_col < s->tiling.tile_cols; tile_col++) { - unsigned tile_size; + int64_t tile_size; if (tile_col == s->tiling.tile_cols - 1 && tile_row == s->tiling.tile_rows - 1) {