]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_transpose.c
Merge commit 'd4aea1aa4060fb5ba7f5f426823b697d2a5af08b'
[ffmpeg] / libavfilter / vf_transpose.c
index 911329caac9b88e1395d351435193f5ff4eef51e..e4de31b042b1edb98e5fba6ab6b6247b3edda8d9 100644 (file)
@@ -151,7 +151,7 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr,
         int hsub    = plane == 1 || plane == 2 ? trans->hsub : 0;
         int vsub    = plane == 1 || plane == 2 ? trans->vsub : 0;
         int pixstep = trans->pixsteps[plane];
-        int inh     = in->height  >> vsub;
+        int inh     = FF_CEIL_RSHIFT(in->height, vsub);
         int outw    = FF_CEIL_RSHIFT(out->width,  hsub);
         int outh    = FF_CEIL_RSHIFT(out->height, vsub);
         int start   = (outh *  jobnr   ) / nb_jobs;