MSImageMovieEncoder icon indicating copy to clipboard operation
MSImageMovieEncoder copied to clipboard

nextFrameInBGRCGBitmapContext doesn't stop when I return NO

Open mladjan opened this issue 11 years ago • 0 comments

When I return NO first time, method gets called one more time :|

-(BOOL)nextFrameInBGRCGBitmapContext:(CGContextRef *)contextRef {
    videoExportCounter++;
    if (videoExportCounter >= self.arrayOfImages.count) {
        return NO;
    }else{
        UIImage *img = [self.arrayOfImages objectAtIndex:videoExportCounter];
        CGContextRef context = *contextRef;
        CGContextDrawImage(context, CGRectMake(0, 0, self.movieWidth, self.movieHeight), img.CGImage);
        return YES;
    }
}

mladjan avatar Mar 08 '14 19:03 mladjan