mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
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:
parent
b6c5ea582a
commit
f5f32986b6
2 changed files with 10 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue