avaudenc/dec: Blacklist more PCM decoders/encoders

This commit is contained in:
Sebastian Dröge 2017-04-13 15:23:45 +03:00
parent 58544546ff
commit 32addd9757
2 changed files with 6 additions and 2 deletions

View file

@ -881,7 +881,9 @@ gst_ffmpegauddec_register (GstPlugin * plugin)
(in_plugin->id >= AV_CODEC_ID_PCM_S16LE && (in_plugin->id >= AV_CODEC_ID_PCM_S16LE &&
in_plugin->id <= AV_CODEC_ID_PCM_BLURAY) || in_plugin->id <= AV_CODEC_ID_PCM_BLURAY) ||
(in_plugin->id >= AV_CODEC_ID_PCM_S8_PLANAR && (in_plugin->id >= AV_CODEC_ID_PCM_S8_PLANAR &&
#if AV_VERSION_INT (LIBAVCODEC_VERSION_MAJOR, LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO) >= AV_VERSION_INT (57,54,0) #if AV_VERSION_INT (LIBAVCODEC_VERSION_MAJOR, LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO) >= AV_VERSION_INT (57,69,0)
in_plugin->id <= AV_CODEC_ID_PCM_F24LE)) {
#elif AV_VERSION_INT (LIBAVCODEC_VERSION_MAJOR, LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO) >= AV_VERSION_INT (57,54,0)
in_plugin->id <= AV_CODEC_ID_PCM_S64BE)) { in_plugin->id <= AV_CODEC_ID_PCM_S64BE)) {
#else #else
in_plugin->id <= AV_CODEC_ID_PCM_S16BE_PLANAR)) { in_plugin->id <= AV_CODEC_ID_PCM_S16BE_PLANAR)) {

View file

@ -791,7 +791,9 @@ gst_ffmpegaudenc_register (GstPlugin * plugin)
(in_plugin->id >= AV_CODEC_ID_PCM_S16LE && (in_plugin->id >= AV_CODEC_ID_PCM_S16LE &&
in_plugin->id <= AV_CODEC_ID_PCM_BLURAY) || in_plugin->id <= AV_CODEC_ID_PCM_BLURAY) ||
(in_plugin->id >= AV_CODEC_ID_PCM_S8_PLANAR && (in_plugin->id >= AV_CODEC_ID_PCM_S8_PLANAR &&
#if AV_VERSION_INT (LIBAVCODEC_VERSION_MAJOR, LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO) >= AV_VERSION_INT (57,54,0) #if AV_VERSION_INT (LIBAVCODEC_VERSION_MAJOR, LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO) >= AV_VERSION_INT (57,69,0)
in_plugin->id <= AV_CODEC_ID_PCM_F24LE)) {
#elif AV_VERSION_INT (LIBAVCODEC_VERSION_MAJOR, LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO) >= AV_VERSION_INT (57,54,0)
in_plugin->id <= AV_CODEC_ID_PCM_S64BE)) { in_plugin->id <= AV_CODEC_ID_PCM_S64BE)) {
#else #else
in_plugin->id <= AV_CODEC_ID_PCM_S16BE_PLANAR)) { in_plugin->id <= AV_CODEC_ID_PCM_S16BE_PLANAR)) {