diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-03-10 11:17:27 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-03-10 11:22:09 +0300 |
commit | 606f6b79eabca236b933dd76e5425162e26ba105 (patch) | |
tree | b46e8670471867a6aad97587d90be51029ca0bb0 /source/blender/imbuf/intern/anim_movie.c | |
parent | 751874d6bf61cab4e017ec9b83277472c40fcb54 (diff) |
Fix T47724: VSE crops video if horizontal resolution isn't divisible by 8
This is a bit annoying, but FFmpeg can't deal with unaligned arrays in some
cases. There seems to be an easy workaround with using SWS_ACCURATE_RND flag
which should be harmless since we don't really scaling frames, but only
using sws_scale to change color space.
Additionally, this is what VLC is also using.
Diffstat (limited to 'source/blender/imbuf/intern/anim_movie.c')
-rw-r--r-- | source/blender/imbuf/intern/anim_movie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/anim_movie.c b/source/blender/imbuf/intern/anim_movie.c index 1b4ce4225d6..1b3b9c28d74 100644 --- a/source/blender/imbuf/intern/anim_movie.c +++ b/source/blender/imbuf/intern/anim_movie.c @@ -600,7 +600,7 @@ static int startffmpeg(struct anim *anim) anim->x, anim->y, AV_PIX_FMT_RGBA, - SWS_FAST_BILINEAR | SWS_PRINT_INFO | SWS_FULL_CHR_H_INT, + SWS_FAST_BILINEAR | SWS_PRINT_INFO | SWS_FULL_CHR_H_INT | SWS_ACCURATE_RND, NULL, NULL, NULL); if (!anim->img_convert_ctx) { |