From 0d84a8f6ae229aa09e0fb3f43f357f4977b136ef Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Tue, 12 Aug 2008 17:28:00 +0000 Subject: [PATCH] increase MAX_REORDER_DELAY and pts_buffer size to 16, max for h264 atm Originally committed as revision 14715 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avformat.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index c7188f5bf6..4ed35227c0 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -390,14 +390,17 @@ typedef struct AVStream { int64_t nb_frames; ///< number of frames in this stream if known or 0 -#define MAX_REORDER_DELAY 4 - int64_t pts_buffer[MAX_REORDER_DELAY+1]; +#if LIBAVFORMAT_VERSION_INT < (53<<16) + int64_t unused[4+1]; +#endif char *filename; /**< source filename of the stream */ int disposition; /**< AV_DISPOSITION_* bitfield */ AVProbeData probe_data; +#define MAX_REORDER_DELAY 16 + int64_t pts_buffer[MAX_REORDER_DELAY+1]; } AVStream; #define AV_PROGRAM_RUNNING 1