Only use AV_CODEC_ID_WRAPPED_AVFRAME on new enough libavcodecs

https://bugzilla.gnome.org/show_bug.cgi?id=770753
This commit is contained in:
Iain Lane 2016-09-02 16:55:46 +01:00 committed by Sebastian Dröge
parent b6c5ea582a
commit f5f32986b6
2 changed files with 10 additions and 4 deletions

View file

@ -2044,8 +2044,11 @@ gst_ffmpegviddec_register (GstPlugin * plugin)
|| in_plugin->id == AV_CODEC_ID_Y41P
|| in_plugin->id == AV_CODEC_ID_012V
|| in_plugin->id == AV_CODEC_ID_YUV4
|| in_plugin->id == AV_CODEC_ID_ZLIB
|| in_plugin->id == AV_CODEC_ID_WRAPPED_AVFRAME) {
#if AV_VERSION_INT (LIBAVCODEC_VERSION_MAJOR, LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO) >= \
AV_VERSION_INT (57,4,0)
|| in_plugin->id == AV_CODEC_ID_WRAPPED_AVFRAME
#endif
|| in_plugin->id == AV_CODEC_ID_ZLIB) {
goto next;
}

View file

@ -966,8 +966,11 @@ gst_ffmpegvidenc_register (GstPlugin * plugin)
|| in_plugin->id == AV_CODEC_ID_Y41P
|| in_plugin->id == AV_CODEC_ID_012V
|| in_plugin->id == AV_CODEC_ID_YUV4
|| in_plugin->id == AV_CODEC_ID_ZLIB
|| in_plugin->id == AV_CODEC_ID_WRAPPED_AVFRAME) {
#if AV_VERSION_INT (LIBAVCODEC_VERSION_MAJOR, LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO) >= \
AV_VERSION_INT (57,4,0)
|| in_plugin->id == AV_CODEC_ID_WRAPPED_AVFRAME
#endif
|| in_plugin->id == AV_CODEC_ID_ZLIB) {
goto next;
}