diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-07-21 22:38:11 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-07-21 22:38:11 +0000 |
commit | 51e540d2621225632e3aa0328652ad371e6b6061 (patch) | |
tree | 611ff185dd9c34916b0e4ab6b25961fd8d935c02 /parse_es.c | |
parent | 36f443636593b3338904954c41186c8c7eade421 (diff) | |
download | mpv-51e540d2621225632e3aa0328652ad371e6b6061.tar.bz2 mpv-51e540d2621225632e3aa0328652ad371e6b6061.tar.xz |
parse_es moved out from mplayer.c (it was included as .c file)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1377 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'parse_es.c')
-rw-r--r-- | parse_es.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/parse_es.c b/parse_es.c index 0d6988a920..e92bc5ddfc 100644 --- a/parse_es.c +++ b/parse_es.c @@ -1,14 +1,22 @@ -//=================== VIDEO PARSER ========================= +//=================== MPEG-ES VIDEO PARSER ========================= -#define MAX_VIDEO_PACKET_SIZE (224*1024+4) -#define VIDEOBUFFER_SIZE 0x100000 +#include <stdio.h> +#include <stdlib.h> -//static unsigned char videobuffer[MAX_VIDEO_PACKET_SIZE]; -static unsigned char* videobuffer=NULL; -static int videobuf_len=0; +extern int verbose; // defined in mplayer.c + +#include "config.h" + +#include "stream.h" +#include "demuxer.h" -static unsigned char videobuf_code[4]; -static int videobuf_code_len=0; +#include "parse_es.h" + +//static unsigned char videobuffer[MAX_VIDEO_PACKET_SIZE]; +unsigned char* videobuffer=NULL; +int videobuf_len=0; +unsigned char videobuf_code[4]; +int videobuf_code_len=0; // sync video stream, and returns next packet code int sync_video_packet(demux_stream_t *ds){ |