comparison libmpdemux/parse_es.h @ 31850:b9c9e72a37b2

Move mp_a52_framesize from demux_ts.c to parse_es.c. The function is used in the MPEG muxer as well and not specific to MPEG-TS. Jointly developed by Nico Sabbi and myself.
author diego
date Thu, 05 Aug 2010 09:01:30 +0000
parents d643e4643313
children
comparison
equal deleted inserted replaced
31849:542ad87bf1b9 31850:b9c9e72a37b2
17 */ 17 */
18 18
19 #ifndef MPLAYER_PARSE_ES_H 19 #ifndef MPLAYER_PARSE_ES_H
20 #define MPLAYER_PARSE_ES_H 20 #define MPLAYER_PARSE_ES_H
21 21
22 #include <stdint.h>
23
22 #include "demuxer.h" 24 #include "demuxer.h"
23 25
24 #define MAX_VIDEO_PACKET_SIZE (224*1024+4) 26 #define MAX_VIDEO_PACKET_SIZE (224*1024+4)
25 #define VIDEOBUFFER_SIZE 0x100000 27 #define VIDEOBUFFER_SIZE 0x100000
26 28
36 int read_video_packet(demux_stream_t *ds); 38 int read_video_packet(demux_stream_t *ds);
37 39
38 // return: next packet code 40 // return: next packet code
39 int skip_video_packet(demux_stream_t *ds); 41 int skip_video_packet(demux_stream_t *ds);
40 42
43 int mp_a52_framesize(uint8_t *buf, int *srate);
44
41 #endif /* MPLAYER_PARSE_ES_H */ 45 #endif /* MPLAYER_PARSE_ES_H */