mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +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_Y41P
|
||||||
|| in_plugin->id == AV_CODEC_ID_012V
|
|| in_plugin->id == AV_CODEC_ID_012V
|
||||||
|| in_plugin->id == AV_CODEC_ID_YUV4
|
|| in_plugin->id == AV_CODEC_ID_YUV4
|
||||||
|| in_plugin->id == AV_CODEC_ID_ZLIB
|
#if AV_VERSION_INT (LIBAVCODEC_VERSION_MAJOR, LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO) >= \
|
||||||
|| in_plugin->id == AV_CODEC_ID_WRAPPED_AVFRAME) {
|
AV_VERSION_INT (57,4,0)
|
||||||
|
|| in_plugin->id == AV_CODEC_ID_WRAPPED_AVFRAME
|
||||||
|
#endif
|
||||||
|
|| in_plugin->id == AV_CODEC_ID_ZLIB) {
|
||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -966,8 +966,11 @@ gst_ffmpegvidenc_register (GstPlugin * plugin)
|
||||||
|| in_plugin->id == AV_CODEC_ID_Y41P
|
|| in_plugin->id == AV_CODEC_ID_Y41P
|
||||||
|| in_plugin->id == AV_CODEC_ID_012V
|
|| in_plugin->id == AV_CODEC_ID_012V
|
||||||
|| in_plugin->id == AV_CODEC_ID_YUV4
|
|| in_plugin->id == AV_CODEC_ID_YUV4
|
||||||
|| in_plugin->id == AV_CODEC_ID_ZLIB
|
#if AV_VERSION_INT (LIBAVCODEC_VERSION_MAJOR, LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO) >= \
|
||||||
|| in_plugin->id == AV_CODEC_ID_WRAPPED_AVFRAME) {
|
AV_VERSION_INT (57,4,0)
|
||||||
|
|| in_plugin->id == AV_CODEC_ID_WRAPPED_AVFRAME
|
||||||
|
#endif
|
||||||
|
|| in_plugin->id == AV_CODEC_ID_ZLIB) {
|
||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue