mirror of
https://github.com/mpv-player/mpv
synced 2025-02-18 05:37:04 +00: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:
parent
9fe2fa599b
commit
506ab685d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user