Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum AVPixelFormat get_format(struct AVCodecContext *s, const enum AVPixelFormat * fmt)
- {
- int result = av_videotoolbox_default_init(s);
- AVVideotoolboxContext * videoToolboxContext = av_videotoolbox_alloc_context();
- result = av_videotoolbox_default_init2(s, videoToolboxContext);
- if (result != 0) {
- NSLog(@"Failed to init video toolbox");
- }
- return *fmt;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement