Skip to content

Commit

Permalink
Debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Oct 19, 2024
1 parent 24fba57 commit 4d82d5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swscale/swscale_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ static int alloc_out_string(sws_t *sws, value *out_vect) {
for (i = 0; i < sws->out.nb_planes; i++) {
height = sws->out.height;

if (i != 0 & i < 4)
if (0 < i & i < 4)
height = height >> sws->out.h_shift;

len = sws->out.stride[i] * height;
Expand Down Expand Up @@ -324,7 +324,7 @@ static int alloc_out_ba(sws_t *sws, value *out_vect) {
for (i = 0; i < sws->out.nb_planes; i++) {
height = sws->out.height;

if (i != 0 & i < 4)
if (0 < i & i < 4)
height = height >> sws->out.h_shift;

out_size += sws->out.stride[i] * height;
Expand All @@ -345,7 +345,7 @@ static int alloc_out_ba(sws_t *sws, value *out_vect) {
for (i = 0; i < sws->out.nb_planes; i++) {
height = sws->out.height;

if (i != 0 & i < 4)
if (0 < i & i < 4)
height = height >> sws->out.h_shift;

len = sws->out.stride[i] * height;
Expand Down

0 comments on commit 4d82d5a

Please sign in to comment.