Skip to content

Instantly share code, notes, and snippets.

@rcombs
Created July 17, 2015 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcombs/54ec499a9c10bb43abd3 to your computer and use it in GitHub Desktop.
Save rcombs/54ec499a9c10bb43abd3 to your computer and use it in GitHub Desktop.
+#if CONFIG_LIBX262_ENCODER
+ if (avctx->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
+ x4->params.b_mpeg2 = 1;
+ x264_param_default_mpeg2(&x4->params);
+ } else
+#else
x264_param_default(&x4->params);
+#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment