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!
This commit is contained in:
Sergey Sharybin 2013-04-15 11:08:02 +00:00
parent 79ca1bd004
commit 427f56f1f0

@ -298,4 +298,9 @@ int64_t av_get_pts_from_frame(AVFormatContext *avctx, AVFrame * picture)
return pts; 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 #endif