Skip to content

Commit

Permalink
vpu gal: do not compare aligned surface size
Browse files Browse the repository at this point in the history
width & height are not aligned, just stride is aligned
  • Loading branch information
wang-bin committed Dec 30, 2015
1 parent 782d086 commit 1d60406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codec/video/viv/GALScaler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ bool GALScalerPrivate::ensureSurface(GALSurface *surf, int w, int h, gceSURF_FOR
return false;
if (!surf)
return false;
if (!surf->isNull() && surf->format == fmt && surf->width == (gctUINT)FFALIGN(w, 16) && surf->height == (gctUINT)FFALIGN(h, 16))
if (!surf->isNull() && surf->format == fmt && surf->width == w && surf->height == h)
return true;
gcoSURF s = gcvNULL;
GC_ENSURE(gcoSURF_Construct(gc_hal, w, h, 1, gcvSURF_BITMAP, fmt, gcvPOOL_DEFAULT, &s), false);
Expand Down

0 comments on commit 1d60406

Please sign in to comment.