From 427f56f1f0a3ceae1e27dc593bbb05b3919a1a2a Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 15 Apr 2013 11:08:02 +0000 Subject: Fix compilation with current FFmpeg trunk AVCODEC_MAX_AUDIO_FRAME_SIZE was deprecated and finally removed from current trunk. Initial patch by Lawrence D'Oliveiro (ldo) with own modification, Thanks! --- intern/ffmpeg/ffmpeg_compat.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'intern/ffmpeg/ffmpeg_compat.h') diff --git a/intern/ffmpeg/ffmpeg_compat.h b/intern/ffmpeg/ffmpeg_compat.h index cd56e3b28d2..e072796abc4 100644 --- a/intern/ffmpeg/ffmpeg_compat.h +++ b/intern/ffmpeg/ffmpeg_compat.h @@ -298,4 +298,9 @@ int64_t av_get_pts_from_frame(AVFormatContext *avctx, AVFrame * picture) return pts; } +/* obsolete constant formerly defined in FFMpeg libavcodec/avcodec.h */ +#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE +# define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio +#endif + #endif -- cgit v1.2.3