Skip to content

Commit

Permalink
Merge pull request BradLarson#2222 from zmzhuai/issue2221
Browse files Browse the repository at this point in the history
fix issue BradLarson#2221
  • Loading branch information
BradLarson committed Apr 3, 2016
2 parents bff9f45 + 791089b commit 65b0176
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/Source/GPUImageMovie.m
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,10 @@ - (void)processMovieFrame:(CVPixelBufferRef)movieFrame withSampleTime:(CMTime)cu
// if (captureAsYUV && [GPUImageContext deviceSupportsRedTextures])
if (CVPixelBufferGetPlaneCount(movieFrame) > 0) // Check for YUV planar inputs to do RGB conversion
{

// fix issue 2221
CVPixelBufferLockBaseAddress(movieFrame,0);


if ( (imageBufferWidth != bufferWidth) && (imageBufferHeight != bufferHeight) )
{
Expand Down

0 comments on commit 65b0176

Please sign in to comment.