1
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 03:06:28 +01:00

Move TS_MAX_PROBE_SIZE #define to demux_ts.h instead of duplicating it.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31291 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2010-05-30 22:14:13 +00:00
parent a849e05e2c
commit def243261a
5 changed files with 4 additions and 2 deletions

View File

@ -264,7 +264,6 @@
{"tsfastparse", "-tsfastparse is no longer a valid option.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL
},
{"tsprog", &ts_prog, CONF_TYPE_INT, CONF_RANGE, 0, 65534, NULL},
#define TS_MAX_PROBE_SIZE 2000000 /* don't forget to change this in libmpdemux/demux_ts.c too */
{"tsprobe", &ts_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL},
{"psprobe", &ps_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL},
{"tskeepbroken", &ts_keep_broken, CONF_TYPE_FLAG, 0, 0, 1, NULL},

View File

@ -24,6 +24,7 @@
*/
#include "libmpcodecs/ve_x264.h"
#include "libmpdemux/demux_ts.h"
#include "cfg-common.h"
extern int sws_flags;

View File

@ -25,6 +25,7 @@
#include "cfg-common.h"
#include "libmpcodecs/vd.h"
#include "libmpdemux/demux_ts.h"
#include "libvo/vo_zr.h"
extern int key_fifo_size;

View File

@ -45,7 +45,6 @@
#define MAX_HEADER_SIZE 6 /* enough for PES header + length */
#define MAX_CHECK_SIZE 65535
#define TS_MAX_PROBE_SIZE 2000000 /* do not forget to change this in cfg-common-opts.h, too */
#define NUM_CONSECUTIVE_TS_PACKETS 32
#define NUM_CONSECUTIVE_AUDIO_PACKETS 348
#define MAX_A52_FRAME_SIZE 3840

View File

@ -21,6 +21,8 @@
#include <stdint.h>
#define TS_MAX_PROBE_SIZE 2000000
int mp_a52_framesize(uint8_t *buf, int *srate);
#endif /* MPLAYER_DEMUX_TS_H */