0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

demuxer.h: raise pad amount to allow compiling against FFmpeg

FFmpeg has increased FF_INPUT_BUFFER_PADDING_SIZE to 16 (unlike Libav
which still has it at 8). Raise MP_INPUT_BUFFER_PADDING_SIZE to 16 to
allow compilation against FFmpeg too (demuxer.c checks the padding
size for packets is at least as much as libavcodec wants for its
decoders, and this check failed with the previous value of 8).
This commit is contained in:
Uoti Urpala 2011-08-26 06:29:36 +03:00
parent 9fe2fa599b
commit 506ab685d4

View File

@ -123,7 +123,7 @@ enum timestamp_type {
#define SEEK_BACKWARD (1 << 3)
// demux_lavf can pass lavf buffers using FF_INPUT_BUFFER_PADDING_SIZE instead
#define MP_INPUT_BUFFER_PADDING_SIZE 8
#define MP_INPUT_BUFFER_PADDING_SIZE 16
typedef struct demux_stream {
int buffer_pos; // current buffer position