Statistics
| Branch: | Revision:

ffmpeg / libavformat / raw.c @ a23c9c4a

History | View | Annotate | Download (21.2 KB)

1 115329f1 Diego Biurrun
/*
2 7fbde343 Aurelien Jacobs
 * RAW muxer and demuxer
3 19720f15 Fabrice Bellard
 * Copyright (c) 2001 Fabrice Bellard.
4 84c63c01 Alex Beregszaszi
 * Copyright (c) 2005 Alex Beregszaszi
5 de6d9b64 Fabrice Bellard
 *
6 b78e7197 Diego Biurrun
 * This file is part of FFmpeg.
7
 *
8
 * FFmpeg is free software; you can redistribute it and/or
9 19720f15 Fabrice Bellard
 * modify it under the terms of the GNU Lesser General Public
10
 * License as published by the Free Software Foundation; either
11 b78e7197 Diego Biurrun
 * version 2.1 of the License, or (at your option) any later version.
12 de6d9b64 Fabrice Bellard
 *
13 b78e7197 Diego Biurrun
 * FFmpeg is distributed in the hope that it will be useful,
14 de6d9b64 Fabrice Bellard
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 19720f15 Fabrice Bellard
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 * Lesser General Public License for more details.
17 de6d9b64 Fabrice Bellard
 *
18 19720f15 Fabrice Bellard
 * You should have received a copy of the GNU Lesser General Public
19 b78e7197 Diego Biurrun
 * License along with FFmpeg; if not, write to the Free Software
20 5509bffa Diego Biurrun
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 de6d9b64 Fabrice Bellard
 */
22
#include "avformat.h"
23 99ff31dc Aurelien Jacobs
#include "ac3_parser.h"
24 7241a6bb Aurelien Jacobs
#include "raw.h"
25 de6d9b64 Fabrice Bellard
26 a9e35095 Diego Biurrun
#ifdef CONFIG_MUXERS
27 de6d9b64 Fabrice Bellard
/* simple formats */
28 ce1d2a95 Justin Ruggles
static int flac_write_header(struct AVFormatContext *s)
29
{
30
    static const uint8_t header[8] = {
31
        0x66, 0x4C, 0x61, 0x43, 0x80, 0x00, 0x00, 0x22
32
    };
33
    uint8_t *streaminfo = s->streams[0]->codec->extradata;
34
    int len = s->streams[0]->codec->extradata_size;
35
    if(streaminfo != NULL && len > 0) {
36 899681cd Björn Axelsson
        put_buffer(s->pb, header, 8);
37
        put_buffer(s->pb, streaminfo, len);
38 ce1d2a95 Justin Ruggles
    }
39
    return 0;
40
}
41
42 13dec857 Vitor Sessak
43
static int roq_write_header(struct AVFormatContext *s)
44
{
45
    static const uint8_t header[] = {
46
        0x84, 0x10, 0xFF, 0xFF, 0xFF, 0xFF, 0x1E, 0x00
47
    };
48
49 899681cd Björn Axelsson
    put_buffer(s->pb, header, 8);
50
    put_flush_packet(s->pb);
51 13dec857 Vitor Sessak
52
    return 0;
53
}
54
55 e928649b Michael Niedermayer
static int raw_write_packet(struct AVFormatContext *s, AVPacket *pkt)
56 de6d9b64 Fabrice Bellard
{
57 899681cd Björn Axelsson
    put_buffer(s->pb, pkt->data, pkt->size);
58
    put_flush_packet(s->pb);
59 de6d9b64 Fabrice Bellard
    return 0;
60
}
61 a9e35095 Diego Biurrun
#endif //CONFIG_MUXERS
62 de6d9b64 Fabrice Bellard
63
/* raw input */
64 0c1a9eda Zdenek Kabelac
static int raw_read_header(AVFormatContext *s, AVFormatParameters *ap)
65 de6d9b64 Fabrice Bellard
{
66
    AVStream *st;
67 c9a65ca8 Fabrice Bellard
    int id;
68 de6d9b64 Fabrice Bellard
69 c9a65ca8 Fabrice Bellard
    st = av_new_stream(s, 0);
70 de6d9b64 Fabrice Bellard
    if (!st)
71 769e10f0 Panagiotis Issaris
        return AVERROR(ENOMEM);
72 c04c3282 Michael Niedermayer
73 c9a65ca8 Fabrice Bellard
        id = s->iformat->value;
74
        if (id == CODEC_ID_RAWVIDEO) {
75 01f4895c Michael Niedermayer
            st->codec->codec_type = CODEC_TYPE_VIDEO;
76 de6d9b64 Fabrice Bellard
        } else {
77 01f4895c Michael Niedermayer
            st->codec->codec_type = CODEC_TYPE_AUDIO;
78 de6d9b64 Fabrice Bellard
        }
79 01f4895c Michael Niedermayer
        st->codec->codec_id = id;
80 c9a65ca8 Fabrice Bellard
81 01f4895c Michael Niedermayer
        switch(st->codec->codec_type) {
82 de6d9b64 Fabrice Bellard
        case CODEC_TYPE_AUDIO:
83 01f4895c Michael Niedermayer
            st->codec->sample_rate = ap->sample_rate;
84
            st->codec->channels = ap->channels;
85
            av_set_pts_info(st, 64, 1, st->codec->sample_rate);
86 de6d9b64 Fabrice Bellard
            break;
87
        case CODEC_TYPE_VIDEO:
88 9de0be61 Michael Niedermayer
            if(ap->time_base.num)
89
                av_set_pts_info(st, 64, ap->time_base.num, ap->time_base.den);
90
            else
91
                av_set_pts_info(st, 64, 1, 25);
92 01f4895c Michael Niedermayer
            st->codec->width = ap->width;
93
            st->codec->height = ap->height;
94
            st->codec->pix_fmt = ap->pix_fmt;
95
            if(st->codec->pix_fmt == PIX_FMT_NONE)
96
                st->codec->pix_fmt= PIX_FMT_YUV420P;
97 de6d9b64 Fabrice Bellard
            break;
98
        default:
99 27e084bd Fabrice Bellard
            return -1;
100 de6d9b64 Fabrice Bellard
        }
101
    return 0;
102
}
103
104 2e93e3aa Fabrice Bellard
#define RAW_PACKET_SIZE 1024
105 de6d9b64 Fabrice Bellard
106 5c91a675 Zdenek Kabelac
static int raw_read_packet(AVFormatContext *s, AVPacket *pkt)
107 de6d9b64 Fabrice Bellard
{
108 f5b41031 Michael Niedermayer
    int ret, size, bps;
109 2a6874fd Fabrice Bellard
    //    AVStream *st = s->streams[0];
110 115329f1 Diego Biurrun
111 231dd3f3 Fabrice Bellard
    size= RAW_PACKET_SIZE;
112 de6d9b64 Fabrice Bellard
113 899681cd Björn Axelsson
    ret= av_get_packet(s->pb, pkt, size);
114 de6d9b64 Fabrice Bellard
115
    pkt->stream_index = 0;
116 2e93e3aa Fabrice Bellard
    if (ret <= 0) {
117 6f3e0b21 Panagiotis Issaris
        return AVERROR(EIO);
118 2e93e3aa Fabrice Bellard
    }
119
    /* note: we need to modify the packet size here to handle the last
120
       packet */
121
    pkt->size = ret;
122 f5b41031 Michael Niedermayer
123
    bps= av_get_bits_per_sample(s->streams[0]->codec->codec_id);
124
    assert(bps); // if false there IS a bug elsewhere (NOT in this function)
125
    pkt->dts=
126
    pkt->pts= pkt->pos*8 / (bps * s->streams[0]->codec->channels);
127
128 de6d9b64 Fabrice Bellard
    return ret;
129
}
130
131 e15dec10 Leon van Stuivenberg
static int raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
132
{
133
    int ret, size;
134
135
    size = RAW_PACKET_SIZE;
136
137
    if (av_new_packet(pkt, size) < 0)
138 6f3e0b21 Panagiotis Issaris
        return AVERROR(EIO);
139 115329f1 Diego Biurrun
140 899681cd Björn Axelsson
    pkt->pos= url_ftell(s->pb);
141 e15dec10 Leon van Stuivenberg
    pkt->stream_index = 0;
142 899681cd Björn Axelsson
    ret = get_partial_buffer(s->pb, pkt->data, size);
143 e15dec10 Leon van Stuivenberg
    if (ret <= 0) {
144
        av_free_packet(pkt);
145 6f3e0b21 Panagiotis Issaris
        return AVERROR(EIO);
146 e15dec10 Leon van Stuivenberg
    }
147
    pkt->size = ret;
148
    return ret;
149
}
150
151 84c63c01 Alex Beregszaszi
// http://www.artificis.hu/files/texts/ingenient.txt
152
static int ingenient_read_packet(AVFormatContext *s, AVPacket *pkt)
153
{
154
    int ret, size, w, h, unk1, unk2;
155 115329f1 Diego Biurrun
156 899681cd Björn Axelsson
    if (get_le32(s->pb) != MKTAG('M', 'J', 'P', 'G'))
157 6f3e0b21 Panagiotis Issaris
        return AVERROR(EIO); // FIXME
158 84c63c01 Alex Beregszaszi
159 899681cd Björn Axelsson
    size = get_le32(s->pb);
160 115329f1 Diego Biurrun
161 899681cd Björn Axelsson
    w = get_le16(s->pb);
162
    h = get_le16(s->pb);
163 115329f1 Diego Biurrun
164 899681cd Björn Axelsson
    url_fskip(s->pb, 8); // zero + size (padded?)
165
    url_fskip(s->pb, 2);
166
    unk1 = get_le16(s->pb);
167
    unk2 = get_le16(s->pb);
168
    url_fskip(s->pb, 22); // ascii timestamp
169 115329f1 Diego Biurrun
170 84c63c01 Alex Beregszaszi
    av_log(NULL, AV_LOG_DEBUG, "Ingenient packet: size=%d, width=%d, height=%d, unk1=%d unk2=%d\n",
171 bb270c08 Diego Biurrun
        size, w, h, unk1, unk2);
172 84c63c01 Alex Beregszaszi
173
    if (av_new_packet(pkt, size) < 0)
174 6f3e0b21 Panagiotis Issaris
        return AVERROR(EIO);
175 84c63c01 Alex Beregszaszi
176 899681cd Björn Axelsson
    pkt->pos = url_ftell(s->pb);
177 84c63c01 Alex Beregszaszi
    pkt->stream_index = 0;
178 899681cd Björn Axelsson
    ret = get_buffer(s->pb, pkt->data, size);
179 84c63c01 Alex Beregszaszi
    if (ret <= 0) {
180
        av_free_packet(pkt);
181 6f3e0b21 Panagiotis Issaris
        return AVERROR(EIO);
182 84c63c01 Alex Beregszaszi
    }
183
    pkt->size = ret;
184
    return ret;
185
}
186
187 5c91a675 Zdenek Kabelac
static int raw_read_close(AVFormatContext *s)
188 de6d9b64 Fabrice Bellard
{
189
    return 0;
190
}
191
192 115329f1 Diego Biurrun
int pcm_read_seek(AVFormatContext *s,
193 7b3c1382 Michael Niedermayer
                  int stream_index, int64_t timestamp, int flags)
194 4986a429 Fabrice Bellard
{
195
    AVStream *st;
196
    int block_align, byte_rate;
197
    int64_t pos;
198
199
    st = s->streams[0];
200 708e3e7d Baptiste Coudurier
201
    block_align = st->codec->block_align ? st->codec->block_align :
202
        (av_get_bits_per_sample(st->codec->codec_id) * st->codec->channels) >> 3;
203
    byte_rate = st->codec->bit_rate ? st->codec->bit_rate >> 3 :
204
        block_align * st->codec->sample_rate;
205 115329f1 Diego Biurrun
206 4986a429 Fabrice Bellard
    if (block_align <= 0 || byte_rate <= 0)
207
        return -1;
208
209
    /* compute the position by aligning it to block_align */
210 115329f1 Diego Biurrun
    pos = av_rescale_rnd(timestamp * byte_rate,
211
                         st->time_base.num,
212 7b3c1382 Michael Niedermayer
                         st->time_base.den * (int64_t)block_align,
213
                         (flags & AVSEEK_FLAG_BACKWARD) ? AV_ROUND_DOWN : AV_ROUND_UP);
214
    pos *= block_align;
215 4986a429 Fabrice Bellard
216
    /* recompute exact position */
217 77405fc8 Michael Niedermayer
    st->cur_dts = av_rescale(pos, st->time_base.den, byte_rate * (int64_t)st->time_base.num);
218 899681cd Björn Axelsson
    url_fseek(s->pb, pos + s->data_offset, SEEK_SET);
219 4986a429 Fabrice Bellard
    return 0;
220
}
221
222 cd66005d Fabrice Bellard
/* ac3 read */
223
static int ac3_read_header(AVFormatContext *s,
224
                           AVFormatParameters *ap)
225
{
226
    AVStream *st;
227
228
    st = av_new_stream(s, 0);
229
    if (!st)
230 769e10f0 Panagiotis Issaris
        return AVERROR(ENOMEM);
231 cd66005d Fabrice Bellard
232 01f4895c Michael Niedermayer
    st->codec->codec_type = CODEC_TYPE_AUDIO;
233
    st->codec->codec_id = CODEC_ID_AC3;
234 57004ff1 Aurelien Jacobs
    st->need_parsing = AVSTREAM_PARSE_FULL;
235 cd66005d Fabrice Bellard
    /* the parameters will be extracted from the compressed bitstream */
236
    return 0;
237
}
238
239 85ad5695 Michael Niedermayer
static int shorten_read_header(AVFormatContext *s,
240
                               AVFormatParameters *ap)
241
{
242
    AVStream *st;
243
244
    st = av_new_stream(s, 0);
245
    if (!st)
246 769e10f0 Panagiotis Issaris
        return AVERROR(ENOMEM);
247 01f4895c Michael Niedermayer
    st->codec->codec_type = CODEC_TYPE_AUDIO;
248
    st->codec->codec_id = CODEC_ID_SHORTEN;
249 57004ff1 Aurelien Jacobs
    st->need_parsing = AVSTREAM_PARSE_FULL;
250 85ad5695 Michael Niedermayer
    /* the parameters will be extracted from the compressed bitstream */
251
    return 0;
252
}
253
254 89ca8c49 Benjamin Larsson
/* flac read */
255
static int flac_read_header(AVFormatContext *s,
256
                            AVFormatParameters *ap)
257
{
258
    AVStream *st;
259
260
    st = av_new_stream(s, 0);
261
    if (!st)
262 769e10f0 Panagiotis Issaris
        return AVERROR(ENOMEM);
263 89ca8c49 Benjamin Larsson
    st->codec->codec_type = CODEC_TYPE_AUDIO;
264
    st->codec->codec_id = CODEC_ID_FLAC;
265 57004ff1 Aurelien Jacobs
    st->need_parsing = AVSTREAM_PARSE_FULL;
266 89ca8c49 Benjamin Larsson
    /* the parameters will be extracted from the compressed bitstream */
267
    return 0;
268
}
269
270 23c99253 Michael Niedermayer
/* dts read */
271
static int dts_read_header(AVFormatContext *s,
272
                           AVFormatParameters *ap)
273
{
274
    AVStream *st;
275
276
    st = av_new_stream(s, 0);
277
    if (!st)
278 769e10f0 Panagiotis Issaris
        return AVERROR(ENOMEM);
279 23c99253 Michael Niedermayer
280 01f4895c Michael Niedermayer
    st->codec->codec_type = CODEC_TYPE_AUDIO;
281
    st->codec->codec_id = CODEC_ID_DTS;
282 57004ff1 Aurelien Jacobs
    st->need_parsing = AVSTREAM_PARSE_FULL;
283 23c99253 Michael Niedermayer
    /* the parameters will be extracted from the compressed bitstream */
284
    return 0;
285
}
286
287 fda885c7 Måns Rullgård
/* aac read */
288
static int aac_read_header(AVFormatContext *s,
289
                           AVFormatParameters *ap)
290
{
291
    AVStream *st;
292
293
    st = av_new_stream(s, 0);
294
    if (!st)
295 769e10f0 Panagiotis Issaris
        return AVERROR(ENOMEM);
296 fda885c7 Måns Rullgård
297
    st->codec->codec_type = CODEC_TYPE_AUDIO;
298
    st->codec->codec_id = CODEC_ID_AAC;
299 57004ff1 Aurelien Jacobs
    st->need_parsing = AVSTREAM_PARSE_FULL;
300 fda885c7 Måns Rullgård
    /* the parameters will be extracted from the compressed bitstream */
301
    return 0;
302
}
303
304 de6d9b64 Fabrice Bellard
/* mpeg1/h263 input */
305
static int video_read_header(AVFormatContext *s,
306
                             AVFormatParameters *ap)
307
{
308
    AVStream *st;
309
310 c9a65ca8 Fabrice Bellard
    st = av_new_stream(s, 0);
311 de6d9b64 Fabrice Bellard
    if (!st)
312 769e10f0 Panagiotis Issaris
        return AVERROR(ENOMEM);
313 de6d9b64 Fabrice Bellard
314 01f4895c Michael Niedermayer
    st->codec->codec_type = CODEC_TYPE_VIDEO;
315
    st->codec->codec_id = s->iformat->value;
316 57004ff1 Aurelien Jacobs
    st->need_parsing = AVSTREAM_PARSE_FULL;
317 4986a429 Fabrice Bellard
318 27e084bd Fabrice Bellard
    /* for mjpeg, specify frame rate */
319 755bfeab Diego Biurrun
    /* for mpeg4 specify it too (most mpeg4 streams do not have the fixed_vop_rate set ...)*/
320 c04c3282 Michael Niedermayer
    if (ap->time_base.num) {
321 80ce3254 Michael Niedermayer
        av_set_pts_info(st, 64, ap->time_base.num, ap->time_base.den);
322 115329f1 Diego Biurrun
    } else if ( st->codec->codec_id == CODEC_ID_MJPEG ||
323 01f4895c Michael Niedermayer
                st->codec->codec_id == CODEC_ID_MPEG4 ||
324
                st->codec->codec_id == CODEC_ID_H264) {
325 80ce3254 Michael Niedermayer
        av_set_pts_info(st, 64, 1, 25);
326 27e084bd Fabrice Bellard
    }
327 80ce3254 Michael Niedermayer
328 de6d9b64 Fabrice Bellard
    return 0;
329
}
330
331 bb270c08 Diego Biurrun
#define SEQ_START_CODE          0x000001b3
332
#define GOP_START_CODE          0x000001b8
333
#define PICTURE_START_CODE      0x00000100
334 93d3e278 Michael Niedermayer
#define SLICE_START_CODE        0x00000101
335
#define PACK_START_CODE         0x000001ba
336 e01dc227 Måns Rullgård
#define VIDEO_ID                0x000001e0
337
#define AUDIO_ID                0x000001c0
338 c9a65ca8 Fabrice Bellard
339
static int mpegvideo_probe(AVProbeData *p)
340
{
341 93d3e278 Michael Niedermayer
    uint32_t code= -1;
342 e01dc227 Måns Rullgård
    int pic=0, seq=0, slice=0, pspack=0, pes=0;
343 93d3e278 Michael Niedermayer
    int i;
344
345
    for(i=0; i<p->buf_size; i++){
346
        code = (code<<8) + p->buf[i];
347
        if ((code & 0xffffff00) == 0x100) {
348
            switch(code){
349
            case     SEQ_START_CODE:   seq++; break;
350
            case PICTURE_START_CODE:   pic++; break;
351
            case   SLICE_START_CODE: slice++; break;
352
            case    PACK_START_CODE: pspack++; break;
353
            }
354 e9f6c8ea Michael Niedermayer
            if     ((code & 0x1f0) == VIDEO_ID)   pes++;
355
            else if((code & 0x1e0) == AUDIO_ID)   pes++;
356 93d3e278 Michael Niedermayer
        }
357 c9a65ca8 Fabrice Bellard
    }
358 e01dc227 Måns Rullgård
    if(seq && seq*9<=pic*10 && pic*9<=slice*10 && !pspack && !pes)
359 93d3e278 Michael Niedermayer
        return AVPROBE_SCORE_MAX/2+1; // +1 for .mpg
360 c9a65ca8 Fabrice Bellard
    return 0;
361
}
362
363 8f57cc5a Thijs Vermeir
#define VISUAL_OBJECT_START_CODE       0x000001b5
364
#define VOP_START_CODE                 0x000001b6
365
366
static int mpeg4video_probe(AVProbeData *probe_packet)
367
{
368
    uint32_t temp_buffer= -1;
369 5fd5d0ef Michael Niedermayer
    int VO=0, VOL=0, VOP = 0, VISO = 0, res=0;
370 8f57cc5a Thijs Vermeir
    int i;
371
372
    for(i=0; i<probe_packet->buf_size; i++){
373
        temp_buffer = (temp_buffer<<8) + probe_packet->buf[i];
374 c21f308e Roman Shaposhnik
        if ((temp_buffer & 0xffffff00) != 0x100)
375
            continue;
376
377
        if (temp_buffer == VOP_START_CODE)                         VOP++;
378
        else if (temp_buffer == VISUAL_OBJECT_START_CODE)          VISO++;
379
        else if (temp_buffer < 0x120)                              VO++;
380
        else if (temp_buffer < 0x130)                              VOL++;
381
        else if (   !(0x1AF < temp_buffer && temp_buffer < 0x1B7)
382
                 && !(0x1B9 < temp_buffer && temp_buffer < 0x1C4)) res++;
383 8f57cc5a Thijs Vermeir
    }
384
385 5fd5d0ef Michael Niedermayer
    if ( VOP >= VISO && VOP >= VOL && VO >= VOL && VOL > 0 && res==0)
386 8f57cc5a Thijs Vermeir
        return AVPROBE_SCORE_MAX/2;
387
    return 0;
388
}
389
390 d07f9043 Michael Niedermayer
static int h263_probe(AVProbeData *p)
391
{
392
    int code;
393
    const uint8_t *d;
394
395
    d = p->buf;
396
    code = (d[0] << 14) | (d[1] << 6) | (d[2] >> 2);
397
    if (code == 0x20) {
398
        return 50;
399
    }
400
    return 0;
401
}
402
403 c6148de2 Michael Niedermayer
static int h261_probe(AVProbeData *p)
404
{
405
    int code;
406
    const uint8_t *d;
407
408
    d = p->buf;
409
    code = (d[0] << 12) | (d[1] << 4) | (d[2] >> 4);
410
    if (code == 0x10) {
411
        return 50;
412
    }
413
    return 0;
414
}
415
416 7156aeb9 Justin Ruggles
static int ac3_probe(AVProbeData *p)
417
{
418 8c222bb4 Måns Rullgård
    int max_frames, first_frames = 0, frames;
419 f8b9830b Justin Ruggles
    uint8_t *buf, *buf2, *end;
420
    AC3HeaderInfo hdr;
421 7156aeb9 Justin Ruggles
422 f8b9830b Justin Ruggles
    max_frames = 0;
423
    buf = p->buf;
424 ecc8fc11 Justin Ruggles
    end = buf + p->buf_size;
425 f8b9830b Justin Ruggles
426
    for(; buf < end; buf++) {
427
        buf2 = buf;
428 7156aeb9 Justin Ruggles
429 f8b9830b Justin Ruggles
        for(frames = 0; buf2 < end; frames++) {
430
            if(ff_ac3_parse_header(buf2, &hdr) < 0)
431
                break;
432
            buf2 += hdr.frame_size;
433
        }
434
        max_frames = FFMAX(max_frames, frames);
435
        if(buf == p->buf)
436
            first_frames = frames;
437
    }
438
    if   (first_frames>=3) return AVPROBE_SCORE_MAX * 3 / 4;
439 2477ce23 Justin Ruggles
    else if(max_frames>=3) return AVPROBE_SCORE_MAX / 2;
440 f8b9830b Justin Ruggles
    else if(max_frames>=1) return 1;
441
    else                   return 0;
442 7156aeb9 Justin Ruggles
}
443
444 e020dbd2 Michael Niedermayer
static int flac_probe(AVProbeData *p)
445
{
446
    if(memcmp(p->buf, "fLaC", 4)) return 0;
447 fbd69f51 Michael Niedermayer
    else                          return AVPROBE_SCORE_MAX / 2;
448 e020dbd2 Michael Niedermayer
}
449
450 d2a067d1 Måns Rullgård
AVInputFormat shorten_demuxer = {
451 85ad5695 Michael Niedermayer
    "shn",
452 84c63c01 Alex Beregszaszi
    "raw shorten",
453 85ad5695 Michael Niedermayer
    0,
454
    NULL,
455
    shorten_read_header,
456
    raw_read_partial_packet,
457
    raw_read_close,
458 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
459 85ad5695 Michael Niedermayer
    .extensions = "shn",
460
};
461
462 d2a067d1 Måns Rullgård
AVInputFormat flac_demuxer = {
463 89ca8c49 Benjamin Larsson
    "flac",
464
    "raw flac",
465
    0,
466 e020dbd2 Michael Niedermayer
    flac_probe,
467 89ca8c49 Benjamin Larsson
    flac_read_header,
468
    raw_read_partial_packet,
469
    raw_read_close,
470 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
471 89ca8c49 Benjamin Larsson
    .extensions = "flac",
472
};
473
474 ce1d2a95 Justin Ruggles
#ifdef CONFIG_MUXERS
475 d2a067d1 Måns Rullgård
AVOutputFormat flac_muxer = {
476 ce1d2a95 Justin Ruggles
    "flac",
477
    "raw flac",
478
    "audio/x-flac",
479
    "flac",
480
    0,
481
    CODEC_ID_FLAC,
482
    0,
483
    flac_write_header,
484
    raw_write_packet,
485 494bbf58 Michael Niedermayer
    .flags= AVFMT_NOTIMESTAMPS,
486 ce1d2a95 Justin Ruggles
};
487
#endif //CONFIG_MUXERS
488
489 cefd4907 Diego Biurrun
#ifdef CONFIG_AC3_DEMUXER
490 d2a067d1 Måns Rullgård
AVInputFormat ac3_demuxer = {
491 c9a65ca8 Fabrice Bellard
    "ac3",
492
    "raw ac3",
493
    0,
494 7156aeb9 Justin Ruggles
    ac3_probe,
495 cd66005d Fabrice Bellard
    ac3_read_header,
496 e15dec10 Leon van Stuivenberg
    raw_read_partial_packet,
497 de6d9b64 Fabrice Bellard
    raw_read_close,
498 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
499 bb76a117 Måns Rullgård
    .extensions = "ac3",
500 de6d9b64 Fabrice Bellard
};
501 cefd4907 Diego Biurrun
#endif
502 de6d9b64 Fabrice Bellard
503 a9e35095 Diego Biurrun
#ifdef CONFIG_MUXERS
504 d2a067d1 Måns Rullgård
AVOutputFormat ac3_muxer = {
505 de6d9b64 Fabrice Bellard
    "ac3",
506
    "raw ac3",
507 115329f1 Diego Biurrun
    "audio/x-ac3",
508 de6d9b64 Fabrice Bellard
    "ac3",
509 c9a65ca8 Fabrice Bellard
    0,
510 de6d9b64 Fabrice Bellard
    CODEC_ID_AC3,
511
    0,
512 7a97dd84 Baptiste Coudurier
    NULL,
513 de6d9b64 Fabrice Bellard
    raw_write_packet,
514 494bbf58 Michael Niedermayer
    .flags= AVFMT_NOTIMESTAMPS,
515 de6d9b64 Fabrice Bellard
};
516 a9e35095 Diego Biurrun
#endif //CONFIG_MUXERS
517 de6d9b64 Fabrice Bellard
518 d2a067d1 Måns Rullgård
AVInputFormat dts_demuxer = {
519 23c99253 Michael Niedermayer
    "dts",
520
    "raw dts",
521
    0,
522
    NULL,
523
    dts_read_header,
524
    raw_read_partial_packet,
525
    raw_read_close,
526 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
527 23c99253 Michael Niedermayer
    .extensions = "dts",
528
};
529
530 d2a067d1 Måns Rullgård
AVInputFormat aac_demuxer = {
531 fda885c7 Måns Rullgård
    "aac",
532
    "ADTS AAC",
533
    0,
534
    NULL,
535
    aac_read_header,
536
    raw_read_partial_packet,
537
    raw_read_close,
538 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
539 fda885c7 Måns Rullgård
    .extensions = "aac",
540
};
541
542 13dec857 Vitor Sessak
#ifdef CONFIG_ROQ_MUXER
543
AVOutputFormat roq_muxer =
544
{
545
    "RoQ",
546
    "Id RoQ format",
547
    NULL,
548
    "roq",
549
    0,
550
    CODEC_ID_ROQ_DPCM,
551
    CODEC_ID_ROQ,
552
    roq_write_header,
553
    raw_write_packet,
554
};
555
#endif //CONFIG_ROQ_MUXER
556
557 d2a067d1 Måns Rullgård
AVInputFormat h261_demuxer = {
558 c6148de2 Michael Niedermayer
    "h261",
559
    "raw h261",
560
    0,
561
    h261_probe,
562
    video_read_header,
563
    raw_read_partial_packet,
564
    raw_read_close,
565 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
566 c6148de2 Michael Niedermayer
    .extensions = "h261",
567
    .value = CODEC_ID_H261,
568
};
569
570 a9e35095 Diego Biurrun
#ifdef CONFIG_MUXERS
571 d2a067d1 Måns Rullgård
AVOutputFormat h261_muxer = {
572 1c3990db Michael Niedermayer
    "h261",
573
    "raw h261",
574
    "video/x-h261",
575
    "h261",
576
    0,
577
    0,
578
    CODEC_ID_H261,
579 7a97dd84 Baptiste Coudurier
    NULL,
580 1c3990db Michael Niedermayer
    raw_write_packet,
581 494bbf58 Michael Niedermayer
    .flags= AVFMT_NOTIMESTAMPS,
582 1c3990db Michael Niedermayer
};
583 a9e35095 Diego Biurrun
#endif //CONFIG_MUXERS
584 1c3990db Michael Niedermayer
585 d2a067d1 Måns Rullgård
AVInputFormat h263_demuxer = {
586 d07f9043 Michael Niedermayer
    "h263",
587
    "raw h263",
588
    0,
589
    h263_probe,
590
    video_read_header,
591 e15dec10 Leon van Stuivenberg
    raw_read_partial_packet,
592 d07f9043 Michael Niedermayer
    raw_read_close,
593 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
594 d07f9043 Michael Niedermayer
//    .extensions = "h263", //FIXME remove after writing mpeg4_probe
595
    .value = CODEC_ID_H263,
596
};
597
598 a9e35095 Diego Biurrun
#ifdef CONFIG_MUXERS
599 d2a067d1 Måns Rullgård
AVOutputFormat h263_muxer = {
600 de6d9b64 Fabrice Bellard
    "h263",
601
    "raw h263",
602
    "video/x-h263",
603
    "h263",
604
    0,
605 c9a65ca8 Fabrice Bellard
    0,
606 de6d9b64 Fabrice Bellard
    CODEC_ID_H263,
607 7a97dd84 Baptiste Coudurier
    NULL,
608 de6d9b64 Fabrice Bellard
    raw_write_packet,
609 494bbf58 Michael Niedermayer
    .flags= AVFMT_NOTIMESTAMPS,
610 c9a65ca8 Fabrice Bellard
};
611 a9e35095 Diego Biurrun
#endif //CONFIG_MUXERS
612 c9a65ca8 Fabrice Bellard
613 d2a067d1 Måns Rullgård
AVInputFormat m4v_demuxer = {
614 7866eeff Michael Niedermayer
    "m4v",
615
    "raw MPEG4 video format",
616
    0,
617 8f57cc5a Thijs Vermeir
    mpeg4video_probe, /** probing for mpeg4 data */
618 7866eeff Michael Niedermayer
    video_read_header,
619 e15dec10 Leon van Stuivenberg
    raw_read_partial_packet,
620 7866eeff Michael Niedermayer
    raw_read_close,
621 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
622 bb76a117 Måns Rullgård
    .extensions = "m4v", //FIXME remove after writing mpeg4_probe
623
    .value = CODEC_ID_MPEG4,
624 7866eeff Michael Niedermayer
};
625
626 a9e35095 Diego Biurrun
#ifdef CONFIG_MUXERS
627 d2a067d1 Måns Rullgård
AVOutputFormat m4v_muxer = {
628 89b3d7c9 Max Krasnyansky
    "m4v",
629
    "raw MPEG4 video format",
630
    NULL,
631
    "m4v",
632
    0,
633
    CODEC_ID_NONE,
634
    CODEC_ID_MPEG4,
635 7a97dd84 Baptiste Coudurier
    NULL,
636 89b3d7c9 Max Krasnyansky
    raw_write_packet,
637 494bbf58 Michael Niedermayer
    .flags= AVFMT_NOTIMESTAMPS,
638 89b3d7c9 Max Krasnyansky
};
639 a9e35095 Diego Biurrun
#endif //CONFIG_MUXERS
640 89b3d7c9 Max Krasnyansky
641 d2a067d1 Måns Rullgård
AVInputFormat h264_demuxer = {
642 0da71265 Michael Niedermayer
    "h264",
643
    "raw H264 video format",
644
    0,
645
    NULL /*mpegvideo_probe*/,
646
    video_read_header,
647 e15dec10 Leon van Stuivenberg
    raw_read_partial_packet,
648 0da71265 Michael Niedermayer
    raw_read_close,
649 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
650 ba5697d5 Michael Niedermayer
    .extensions = "h26l,h264,264", //FIXME remove after writing mpeg4_probe
651 0da71265 Michael Niedermayer
    .value = CODEC_ID_H264,
652
};
653
654 a9e35095 Diego Biurrun
#ifdef CONFIG_MUXERS
655 d2a067d1 Måns Rullgård
AVOutputFormat h264_muxer = {
656 0da71265 Michael Niedermayer
    "h264",
657
    "raw H264 video format",
658
    NULL,
659
    "h264",
660
    0,
661
    CODEC_ID_NONE,
662
    CODEC_ID_H264,
663 7a97dd84 Baptiste Coudurier
    NULL,
664 0da71265 Michael Niedermayer
    raw_write_packet,
665 494bbf58 Michael Niedermayer
    .flags= AVFMT_NOTIMESTAMPS,
666 0da71265 Michael Niedermayer
};
667 a9e35095 Diego Biurrun
#endif //CONFIG_MUXERS
668 0da71265 Michael Niedermayer
669 d2a067d1 Måns Rullgård
AVInputFormat mpegvideo_demuxer = {
670 c9a65ca8 Fabrice Bellard
    "mpegvideo",
671
    "MPEG video",
672
    0,
673
    mpegvideo_probe,
674 de6d9b64 Fabrice Bellard
    video_read_header,
675 e15dec10 Leon van Stuivenberg
    raw_read_partial_packet,
676 de6d9b64 Fabrice Bellard
    raw_read_close,
677 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
678 bb76a117 Måns Rullgård
    .value = CODEC_ID_MPEG1VIDEO,
679 de6d9b64 Fabrice Bellard
};
680
681 a9e35095 Diego Biurrun
#ifdef CONFIG_MUXERS
682 d2a067d1 Måns Rullgård
AVOutputFormat mpeg1video_muxer = {
683 c9a65ca8 Fabrice Bellard
    "mpeg1video",
684 de6d9b64 Fabrice Bellard
    "MPEG video",
685
    "video/x-mpeg",
686 e0827ba4 Michael Niedermayer
    "mpg,mpeg,m1v",
687 de6d9b64 Fabrice Bellard
    0,
688 c9a65ca8 Fabrice Bellard
    0,
689 de6d9b64 Fabrice Bellard
    CODEC_ID_MPEG1VIDEO,
690 7a97dd84 Baptiste Coudurier
    NULL,
691 de6d9b64 Fabrice Bellard
    raw_write_packet,
692 494bbf58 Michael Niedermayer
    .flags= AVFMT_NOTIMESTAMPS,
693 de6d9b64 Fabrice Bellard
};
694 a9e35095 Diego Biurrun
#endif //CONFIG_MUXERS
695 de6d9b64 Fabrice Bellard
696 a9e35095 Diego Biurrun
#ifdef CONFIG_MUXERS
697 d2a067d1 Måns Rullgård
AVOutputFormat mpeg2video_muxer = {
698 6ec864da Michael Niedermayer
    "mpeg2video",
699
    "MPEG2 video",
700
    NULL,
701
    "m2v",
702
    0,
703
    0,
704
    CODEC_ID_MPEG2VIDEO,
705 7a97dd84 Baptiste Coudurier
    NULL,
706 6ec864da Michael Niedermayer
    raw_write_packet,
707 494bbf58 Michael Niedermayer
    .flags= AVFMT_NOTIMESTAMPS,
708 6ec864da Michael Niedermayer
};
709 a9e35095 Diego Biurrun
#endif //CONFIG_MUXERS
710 6ec864da Michael Niedermayer
711 d2a067d1 Måns Rullgård
AVInputFormat mjpeg_demuxer = {
712 27e084bd Fabrice Bellard
    "mjpeg",
713
    "MJPEG video",
714
    0,
715 c9a65ca8 Fabrice Bellard
    NULL,
716 27e084bd Fabrice Bellard
    video_read_header,
717 e15dec10 Leon van Stuivenberg
    raw_read_partial_packet,
718 27e084bd Fabrice Bellard
    raw_read_close,
719 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
720 bb76a117 Måns Rullgård
    .extensions = "mjpg,mjpeg",
721
    .value = CODEC_ID_MJPEG,
722 27e084bd Fabrice Bellard
};
723
724 d2a067d1 Måns Rullgård
AVInputFormat ingenient_demuxer = {
725 84c63c01 Alex Beregszaszi
    "ingenient",
726
    "Ingenient MJPEG",
727
    0,
728
    NULL,
729
    video_read_header,
730
    ingenient_read_packet,
731
    raw_read_close,
732 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
733 84c63c01 Alex Beregszaszi
    .extensions = "cgi", // FIXME
734
    .value = CODEC_ID_MJPEG,
735
};
736
737 a9e35095 Diego Biurrun
#ifdef CONFIG_MUXERS
738 d2a067d1 Måns Rullgård
AVOutputFormat mjpeg_muxer = {
739 c9a65ca8 Fabrice Bellard
    "mjpeg",
740
    "MJPEG video",
741
    "video/x-mjpeg",
742
    "mjpg,mjpeg",
743 5ed8fafc Fabrice Bellard
    0,
744
    0,
745 c9a65ca8 Fabrice Bellard
    CODEC_ID_MJPEG,
746 7a97dd84 Baptiste Coudurier
    NULL,
747 5ed8fafc Fabrice Bellard
    raw_write_packet,
748 494bbf58 Michael Niedermayer
    .flags= AVFMT_NOTIMESTAMPS,
749 5ed8fafc Fabrice Bellard
};
750 a9e35095 Diego Biurrun
#endif //CONFIG_MUXERS
751 5ed8fafc Fabrice Bellard
752 7bb5c2a6 Kostya Shishkov
AVInputFormat vc1_demuxer = {
753
    "vc1",
754
    "raw vc1",
755
    0,
756
    NULL /* vc1_probe */,
757
    video_read_header,
758
    raw_read_partial_packet,
759
    raw_read_close,
760
    .extensions = "vc1",
761
    .value = CODEC_ID_VC1,
762
};
763
764 c9a65ca8 Fabrice Bellard
/* pcm formats */
765 764ef400 Mike Melanson
766 4986a429 Fabrice Bellard
#define PCMINPUTDEF(name, long_name, ext, codec) \
767 d2a067d1 Måns Rullgård
AVInputFormat pcm_ ## name ## _demuxer = {\
768 764ef400 Mike Melanson
    #name,\
769
    long_name,\
770
    0,\
771
    NULL,\
772
    raw_read_header,\
773
    raw_read_packet,\
774
    raw_read_close,\
775 4986a429 Fabrice Bellard
    pcm_read_seek,\
776 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,\
777 764ef400 Mike Melanson
    .extensions = ext,\
778
    .value = codec,\
779
};
780
781 2c8e2014 Diego Biurrun
#define PCMOUTPUTDEF(name, long_name, ext, codec) \
782 d2a067d1 Måns Rullgård
AVOutputFormat pcm_ ## name ## _muxer = {\
783 c9a65ca8 Fabrice Bellard
    #name,\
784
    long_name,\
785
    NULL,\
786
    ext,\
787
    0,\
788
    codec,\
789
    0,\
790 7a97dd84 Baptiste Coudurier
    NULL,\
791 c9a65ca8 Fabrice Bellard
    raw_write_packet,\
792 494bbf58 Michael Niedermayer
    .flags= AVFMT_NOTIMESTAMPS,\
793 5ed8fafc Fabrice Bellard
};
794 2c8e2014 Diego Biurrun
795
796
#if !defined(CONFIG_MUXERS) && defined(CONFIG_DEMUXERS)
797
#define PCMDEF(name, long_name, ext, codec) \
798
        PCMINPUTDEF(name, long_name, ext, codec)
799
#elif defined(CONFIG_MUXERS) && !defined(CONFIG_DEMUXERS)
800
#define PCMDEF(name, long_name, ext, codec) \
801
        PCMOUTPUTDEF(name, long_name, ext, codec)
802
#elif defined(CONFIG_MUXERS) && defined(CONFIG_DEMUXERS)
803
#define PCMDEF(name, long_name, ext, codec) \
804
        PCMINPUTDEF(name, long_name, ext, codec)\
805
        PCMOUTPUTDEF(name, long_name, ext, codec)
806
#else
807
#define PCMDEF(name, long_name, ext, codec)
808
#endif
809 5ed8fafc Fabrice Bellard
810
#ifdef WORDS_BIGENDIAN
811 c9a65ca8 Fabrice Bellard
#define BE_DEF(s) s
812
#define LE_DEF(s) NULL
813 5ed8fafc Fabrice Bellard
#else
814 c9a65ca8 Fabrice Bellard
#define BE_DEF(s) NULL
815
#define LE_DEF(s) s
816 5ed8fafc Fabrice Bellard
#endif
817
818
819 115329f1 Diego Biurrun
PCMDEF(s16le, "pcm signed 16 bit little endian format",
820 c9a65ca8 Fabrice Bellard
       LE_DEF("sw"), CODEC_ID_PCM_S16LE)
821 5ed8fafc Fabrice Bellard
822 115329f1 Diego Biurrun
PCMDEF(s16be, "pcm signed 16 bit big endian format",
823 c9a65ca8 Fabrice Bellard
       BE_DEF("sw"), CODEC_ID_PCM_S16BE)
824 5ed8fafc Fabrice Bellard
825 115329f1 Diego Biurrun
PCMDEF(u16le, "pcm unsigned 16 bit little endian format",
826 c9a65ca8 Fabrice Bellard
       LE_DEF("uw"), CODEC_ID_PCM_U16LE)
827 5ed8fafc Fabrice Bellard
828 115329f1 Diego Biurrun
PCMDEF(u16be, "pcm unsigned 16 bit big endian format",
829 c9a65ca8 Fabrice Bellard
       BE_DEF("uw"), CODEC_ID_PCM_U16BE)
830 5ed8fafc Fabrice Bellard
831 115329f1 Diego Biurrun
PCMDEF(s8, "pcm signed 8 bit format",
832 c9a65ca8 Fabrice Bellard
       "sb", CODEC_ID_PCM_S8)
833 5ed8fafc Fabrice Bellard
834 115329f1 Diego Biurrun
PCMDEF(u8, "pcm unsigned 8 bit format",
835 c9a65ca8 Fabrice Bellard
       "ub", CODEC_ID_PCM_U8)
836 5ed8fafc Fabrice Bellard
837 115329f1 Diego Biurrun
PCMDEF(mulaw, "pcm mu law format",
838 c9a65ca8 Fabrice Bellard
       "ul", CODEC_ID_PCM_MULAW)
839 de6d9b64 Fabrice Bellard
840 115329f1 Diego Biurrun
PCMDEF(alaw, "pcm A law format",
841 c9a65ca8 Fabrice Bellard
       "al", CODEC_ID_PCM_ALAW)
842 de6d9b64 Fabrice Bellard
843 5c91a675 Zdenek Kabelac
static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt)
844 de6d9b64 Fabrice Bellard
{
845
    int packet_size, ret, width, height;
846
    AVStream *st = s->streams[0];
847
848 01f4895c Michael Niedermayer
    width = st->codec->width;
849
    height = st->codec->height;
850 de6d9b64 Fabrice Bellard
851 01f4895c Michael Niedermayer
    packet_size = avpicture_get_size(st->codec->pix_fmt, width, height);
852 63167088 Roman Shaposhnik
    if (packet_size < 0)
853 71c32f19 Michael Niedermayer
        return -1;
854 de6d9b64 Fabrice Bellard
855 899681cd Björn Axelsson
    ret= av_get_packet(s->pb, pkt, packet_size);
856 f5b41031 Michael Niedermayer
    pkt->pts=
857
    pkt->dts= pkt->pos / packet_size;
858 de6d9b64 Fabrice Bellard
859
    pkt->stream_index = 0;
860 2692067a Michael Niedermayer
    if (ret != packet_size) {
861 6f3e0b21 Panagiotis Issaris
        return AVERROR(EIO);
862 de6d9b64 Fabrice Bellard
    } else {
863
        return 0;
864
    }
865
}
866
867 d2a067d1 Måns Rullgård
AVInputFormat rawvideo_demuxer = {
868 c9a65ca8 Fabrice Bellard
    "rawvideo",
869
    "raw video format",
870
    0,
871
    NULL,
872
    raw_read_header,
873
    rawvideo_read_packet,
874
    raw_read_close,
875 e9b78eeb Michael Niedermayer
    .flags= AVFMT_GENERIC_INDEX,
876 5faf2d36 Benoit Fouet
    .extensions = "yuv,cif,qcif,rgb",
877 bb76a117 Måns Rullgård
    .value = CODEC_ID_RAWVIDEO,
878 c9a65ca8 Fabrice Bellard
};
879
880 a9e35095 Diego Biurrun
#ifdef CONFIG_MUXERS
881 d2a067d1 Måns Rullgård
AVOutputFormat rawvideo_muxer = {
882 de6d9b64 Fabrice Bellard
    "rawvideo",
883
    "raw video format",
884
    NULL,
885 b47f86c4 Benoit Fouet
    "yuv,rgb",
886 c9a65ca8 Fabrice Bellard
    0,
887 de6d9b64 Fabrice Bellard
    CODEC_ID_NONE,
888
    CODEC_ID_RAWVIDEO,
889 7a97dd84 Baptiste Coudurier
    NULL,
890 de6d9b64 Fabrice Bellard
    raw_write_packet,
891 494bbf58 Michael Niedermayer
    .flags= AVFMT_NOTIMESTAMPS,
892 de6d9b64 Fabrice Bellard
};
893 a9e35095 Diego Biurrun
#endif //CONFIG_MUXERS
894 c9a65ca8 Fabrice Bellard
895 a9e35095 Diego Biurrun
#ifdef CONFIG_MUXERS
896 e928649b Michael Niedermayer
static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt)
897 87bdd3e5 Fabrice Bellard
{
898
    return 0;
899
}
900
901 d2a067d1 Måns Rullgård
AVOutputFormat null_muxer = {
902 87bdd3e5 Fabrice Bellard
    "null",
903
    "null video format",
904
    NULL,
905
    NULL,
906
    0,
907
#ifdef WORDS_BIGENDIAN
908
    CODEC_ID_PCM_S16BE,
909
#else
910
    CODEC_ID_PCM_S16LE,
911
#endif
912
    CODEC_ID_RAWVIDEO,
913 7a97dd84 Baptiste Coudurier
    NULL,
914 87bdd3e5 Fabrice Bellard
    null_write_packet,
915 494bbf58 Michael Niedermayer
    .flags = AVFMT_NOFILE | AVFMT_RAWPICTURE | AVFMT_NOTIMESTAMPS,
916 87bdd3e5 Fabrice Bellard
};
917 a9e35095 Diego Biurrun
#endif //CONFIG_MUXERS