~vcs-imports/mplayer/trunk

Viewing all changes in revision 38155.

  • Committer: al
  • Date: 2021-05-14 19:45:46 UTC
  • Revision ID: svn-v4:b3059339-0415-0410-9bf9-f77b7e298cf2:trunk:38310
libmpcodecs/ve_lavc: Don't set options via deprecated AVCodecContext fields

Those fields were removed in libavcodec major 59.

Some options won't work for some codecs anymore. Probably they
didn't work before too but were simply ignored. We can't keep
passing all options in all cases, because some encoders don't
support them and if they were passed in as dict paramters, we
will fail if they weren't accepted.

For a few options the default was changed, because their default
in libavcodec is different. Now the default can be different in
every encoder, because that is how codec private options work
in libavcodec.

These defaults were changed:
    -static int lavc_param_prediction_method= FF_PRED_LEFT;
    +static int lavc_param_prediction_method= 0; // method left (for some encoders)
    -static int lavc_param_pre_me= 1;
    +static int lavc_param_pre_me= 0;
    -static int lavc_param_skip_cmp=0;
    +static int lavc_param_skip_cmp = FF_CMP_DCTMAX;

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: