Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2021-02-05 16:28:52 +0300
committerSebastian Parborg <darkdefende@gmail.com>2021-02-05 16:30:35 +0300
commitbe636f72dcc1ca1bc815b246bb6661c0b7b11f82 (patch)
treec83b70305378ec458839d63bd7b371064a723d41
parent6b4cd92e4dfbfdd2bcd5557d2506a3bec59cd792 (diff)
Cleanup: Remove LibAV support
Ubuntu and Debian dropped libav in 2015 in favor of ffmpeg. Development stopped of libav in 2018, so it should be save to remove.
-rw-r--r--intern/ffmpeg/ffmpeg_compat.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/intern/ffmpeg/ffmpeg_compat.h b/intern/ffmpeg/ffmpeg_compat.h
index d6eb5f9db1d..727fd4b9601 100644
--- a/intern/ffmpeg/ffmpeg_compat.h
+++ b/intern/ffmpeg/ffmpeg_compat.h
@@ -49,16 +49,6 @@
#include <libswscale/swscale.h>
-/* Stupid way to distinguish FFmpeg from Libav:
- * - FFmpeg's MICRO version starts from 100 and goes up, while
- * - Libav's micro is always below 100.
- */
-#if LIBAVCODEC_VERSION_MICRO >= 100
-# define AV_USING_FFMPEG
-#else
-# define AV_USING_LIBAV
-#endif
-
#if (LIBAVFORMAT_VERSION_MAJOR > 52) || \
((LIBAVFORMAT_VERSION_MAJOR >= 52) && (LIBAVFORMAT_VERSION_MINOR >= 105))
# define FFMPEG_HAVE_AVIO 1
@@ -528,22 +518,6 @@ bool av_check_encoded_with_ffmpeg(AVFormatContext *ctx)
return false;
}
-/* Libav doesn't have av_guess_frame_rate().
- * It was introduced in FFmpeg's lavf 55.1.100. */
-#ifdef AV_USING_LIBAV
-AVRational av_guess_frame_rate(AVFormatContext *ctx, AVStream *stream, AVFrame *frame)
-{
- (void)ctx;
- (void)frame;
-# if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 23, 1)
- /* For until r_frame_rate was deprecated (in Libav) use it. */
- return stream->r_frame_rate;
-# else
- return stream->avg_frame_rate;
-# endif
-}
-#endif
-
#if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(51, 32, 0)
# define AV_OPT_SEARCH_FAKE_OBJ 0
#endif