Guest User

get_format

a guest
Jun 18th, 2016
157
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enum AVPixelFormat get_format(struct AVCodecContext *s, const enum AVPixelFormat * fmt)
  2. {
  3. int result = av_videotoolbox_default_init(s);
  4.  
  5. AVVideotoolboxContext * videoToolboxContext = av_videotoolbox_alloc_context();
  6. result = av_videotoolbox_default_init2(s, videoToolboxContext);
  7.  
  8. if (result != 0) {
  9. NSLog(@"Failed to init video toolbox");
  10. }
  11.  
  12. return *fmt;
  13. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×