History

avfilter/vf_v360: move map variable up

Paul B Mahol committed 6 years ago

Commit ff5e2411 parent fdc61261 file · +1 −1Browse files

Unified · Split

libavfilter/vf_v360.c+1−1
@@ -242,6 +242,7 @@ static int remap##ws##_##bits##bit_slice(AVFilterContext *ctx, void *arg, int jo · 241 unmodified lines
242242 \
243243 for (int stereo = 0; stereo < 1 + s->out_stereo > STEREO_2D; stereo++) { \
244244 for (int plane = 0; plane < s->nb_planes; plane++) { \
245+ const unsigned map = s->map[plane]; \
245246 const int in_linesize = in->linesize[plane]; \
246247 const int out_linesize = out->linesize[plane]; \
247248 const int uv_linesize = s->uv_linesize[plane]; \
@@ -259,7 +260,6 @@ static int remap##ws##_##bits##bit_slice(AVFilterContext *ctx, void *arg, int jo · 11 unmodified lines
259260 const int slice_end = (height * (jobnr + 1)) / nb_jobs; \
260261 \
261262 for (int y = slice_start; y < slice_end; y++) { \
262− const unsigned map = s->map[plane]; \
263263 const uint16_t *const u = s->u[map] + y * uv_linesize * ws * ws; \
264264 const uint16_t *const v = s->v[map] + y * uv_linesize * ws * ws; \
265265 const int16_t *const ker = s->ker[map] + y * uv_linesize * ws * ws; \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t