comparison mm.c @ 5797:e0e1ddbfca1a libavformat

Remove static function name prefixes from American Laser Games MM demuxer
author pross
date Tue, 09 Mar 2010 12:37:13 +0000
parents 655d9d34f862
children 536e5527c1e0
comparison
equal deleted inserted replaced
5796:a8bf262a9302 5797:e0e1ddbfca1a
54 54
55 typedef struct { 55 typedef struct {
56 unsigned int audio_pts, video_pts; 56 unsigned int audio_pts, video_pts;
57 } MmDemuxContext; 57 } MmDemuxContext;
58 58
59 static int mm_probe(AVProbeData *p) 59 static int probe(AVProbeData *p)
60 { 60 {
61 int len, type, fps, w, h; 61 int len, type, fps, w, h;
62 if (p->buf_size < MM_HEADER_LEN_AV + MM_PREAMBLE_SIZE) 62 if (p->buf_size < MM_HEADER_LEN_AV + MM_PREAMBLE_SIZE)
63 return 0; 63 return 0;
64 /* the first chunk is always the header */ 64 /* the first chunk is always the header */
78 78
79 /* only return half certainty since this check is a bit sketchy */ 79 /* only return half certainty since this check is a bit sketchy */
80 return AVPROBE_SCORE_MAX / 2; 80 return AVPROBE_SCORE_MAX / 2;
81 } 81 }
82 82
83 static int mm_read_header(AVFormatContext *s, 83 static int read_header(AVFormatContext *s,
84 AVFormatParameters *ap) 84 AVFormatParameters *ap)
85 { 85 {
86 MmDemuxContext *mm = s->priv_data; 86 MmDemuxContext *mm = s->priv_data;
87 ByteIOContext *pb = s->pb; 87 ByteIOContext *pb = s->pb;
88 AVStream *st; 88 AVStream *st;
131 mm->audio_pts = 0; 131 mm->audio_pts = 0;
132 mm->video_pts = 0; 132 mm->video_pts = 0;
133 return 0; 133 return 0;
134 } 134 }
135 135
136 static int mm_read_packet(AVFormatContext *s, 136 static int read_packet(AVFormatContext *s,
137 AVPacket *pkt) 137 AVPacket *pkt)
138 { 138 {
139 MmDemuxContext *mm = s->priv_data; 139 MmDemuxContext *mm = s->priv_data;
140 ByteIOContext *pb = s->pb; 140 ByteIOContext *pb = s->pb;
141 unsigned char preamble[MM_PREAMBLE_SIZE]; 141 unsigned char preamble[MM_PREAMBLE_SIZE];
190 190
191 AVInputFormat mm_demuxer = { 191 AVInputFormat mm_demuxer = {
192 "mm", 192 "mm",
193 NULL_IF_CONFIG_SMALL("American Laser Games MM format"), 193 NULL_IF_CONFIG_SMALL("American Laser Games MM format"),
194 sizeof(MmDemuxContext), 194 sizeof(MmDemuxContext),
195 mm_probe, 195 probe,
196 mm_read_header, 196 read_header,
197 mm_read_packet, 197 read_packet,
198 }; 198 };