transcode-1.1.7-ffmpeg.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --- encode/encode_lavc.c
  2. +++ encode/encode_lavc.c
  3. @@ -955,8 +955,6 @@
  4. /*
  5. * context *transcode* (not libavcodec) defaults
  6. */
  7. - pd->ff_vcontext.mb_qmin = 2;
  8. - pd->ff_vcontext.mb_qmax = 31;
  9. pd->ff_vcontext.max_qdiff = 3;
  10. pd->ff_vcontext.max_b_frames = 0;
  11. pd->ff_vcontext.me_range = 0;
  12. @@ -1116,8 +1114,6 @@
  13. // handled by transcode core
  14. // { "vqmax", PCTX(qmax), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 60 },
  15. // handled by transcode core
  16. - { "mbqmin", PCTX(mb_qmin), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 60 },
  17. - { "mbqmax", PCTX(mb_qmax), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 60 },
  18. { "lmin", PAUX(lmin), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.01, 255.0 },
  19. { "lmax", PAUX(lmax), TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.01, 255.0 },
  20. { "vqdiff", PCTX(max_qdiff), TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31 },
  21. --- export/ffmpeg_cfg.c
  22. +++ export/ffmpeg_cfg.c
  23. @@ -34,8 +34,6 @@
  24. //int lavc_param_vqscale = 0;
  25. //int lavc_param_vqmin = 2;
  26. //int lavc_param_vqmax = 31;
  27. -int lavc_param_mb_qmin = 2;
  28. -int lavc_param_mb_qmax = 31;
  29. int lavc_param_lmin = 2;
  30. int lavc_param_lmax = 31;
  31. int lavc_param_vqdiff = 3;
  32. @@ -143,8 +141,6 @@
  33. // {"vqscale", &lavc_param_vqscale, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31},
  34. // {"vqmin", &lavc_param_vqmin, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31},
  35. // {"vqmax", &lavc_param_vqmax, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31},
  36. - {"mbqmin", &lavc_param_mb_qmin, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31},
  37. - {"mbqmax", &lavc_param_mb_qmax, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31},
  38. {"lmin", &lavc_param_lmin, TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.01, 255.0},
  39. {"lmax", &lavc_param_lmax, TCCONF_TYPE_FLOAT, TCCONF_FLAG_RANGE, 0.01, 255.0},
  40. {"vqdiff", &lavc_param_vqdiff, TCCONF_TYPE_INT, TCCONF_FLAG_RANGE, 1, 31},
  41. --- export/ffmpeg_cfg.h
  42. +++ export/ffmpeg_cfg.h
  43. @@ -13,8 +13,6 @@
  44. //extern int lavc_param_vqscale;
  45. //extern int lavc_param_vqmin;
  46. //extern int lavc_param_vqmax;
  47. -extern int lavc_param_mb_qmin;
  48. -extern int lavc_param_mb_qmax;
  49. extern int lavc_param_lmin;
  50. extern int lavc_param_lmax;
  51. extern int lavc_param_vqdiff;