2003-09-08 04:14:34 +00:00
|
|
|
/*
|
|
|
|
* Wing Commander III Movie (.mve) File Demuxer
|
2014-08-23 19:39:22 +00:00
|
|
|
* Copyright (c) 2003 The FFmpeg Project
|
2003-09-08 04:14:34 +00:00
|
|
|
*
|
2006-10-07 15:30:46 +00:00
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2003-09-08 04:14:34 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2006-10-07 15:30:46 +00:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2003-09-08 04:14:34 +00:00
|
|
|
*
|
2006-10-07 15:30:46 +00:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2003-09-08 04:14:34 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2006-10-07 15:30:46 +00:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2006-01-12 22:43:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2003-09-08 04:14:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2010-04-20 14:45:34 +00:00
|
|
|
* @file
|
2003-09-08 04:14:34 +00:00
|
|
|
* Wing Commander III Movie file demuxer
|
|
|
|
* by Mike Melanson (melanson@pcisys.net)
|
|
|
|
* for more information on the WC3 .mve file format, visit:
|
|
|
|
* http://www.pcisys.net/~melanson/codecs/
|
|
|
|
*/
|
|
|
|
|
2013-12-21 11:52:23 +00:00
|
|
|
#include "libavutil/avstring.h"
|
2012-04-07 22:49:09 +00:00
|
|
|
#include "libavutil/channel_layout.h"
|
2009-01-11 22:19:48 +00:00
|
|
|
#include "libavutil/intreadwrite.h"
|
2011-05-22 10:46:29 +00:00
|
|
|
#include "libavutil/dict.h"
|
2003-09-08 04:14:34 +00:00
|
|
|
#include "avformat.h"
|
2011-11-29 18:28:15 +00:00
|
|
|
#include "internal.h"
|
2003-09-08 04:14:34 +00:00
|
|
|
|
2004-03-14 04:04:08 +00:00
|
|
|
#define FORM_TAG MKTAG('F', 'O', 'R', 'M')
|
|
|
|
#define MOVE_TAG MKTAG('M', 'O', 'V', 'E')
|
2007-12-01 00:07:51 +00:00
|
|
|
#define PC__TAG MKTAG('_', 'P', 'C', '_')
|
2004-03-14 04:04:08 +00:00
|
|
|
#define SOND_TAG MKTAG('S', 'O', 'N', 'D')
|
|
|
|
#define BNAM_TAG MKTAG('B', 'N', 'A', 'M')
|
|
|
|
#define SIZE_TAG MKTAG('S', 'I', 'Z', 'E')
|
|
|
|
#define PALT_TAG MKTAG('P', 'A', 'L', 'T')
|
|
|
|
#define INDX_TAG MKTAG('I', 'N', 'D', 'X')
|
|
|
|
#define BRCH_TAG MKTAG('B', 'R', 'C', 'H')
|
|
|
|
#define SHOT_TAG MKTAG('S', 'H', 'O', 'T')
|
|
|
|
#define VGA__TAG MKTAG('V', 'G', 'A', ' ')
|
|
|
|
#define TEXT_TAG MKTAG('T', 'E', 'X', 'T')
|
|
|
|
#define AUDI_TAG MKTAG('A', 'U', 'D', 'I')
|
2003-09-08 04:14:34 +00:00
|
|
|
|
|
|
|
/* video resolution unless otherwise specified */
|
|
|
|
#define WC3_DEFAULT_WIDTH 320
|
|
|
|
#define WC3_DEFAULT_HEIGHT 165
|
|
|
|
|
|
|
|
/* always use the same PCM audio parameters */
|
|
|
|
#define WC3_SAMPLE_RATE 22050
|
|
|
|
#define WC3_AUDIO_CHANNELS 1
|
|
|
|
#define WC3_AUDIO_BITS 16
|
|
|
|
|
|
|
|
/* nice, constant framerate */
|
2008-03-01 02:28:47 +00:00
|
|
|
#define WC3_FRAME_FPS 15
|
2003-09-08 04:14:34 +00:00
|
|
|
|
|
|
|
#define PALETTE_SIZE (256 * 3)
|
|
|
|
|
|
|
|
typedef struct Wc3DemuxContext {
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
int64_t pts;
|
|
|
|
int video_stream_index;
|
|
|
|
int audio_stream_index;
|
|
|
|
|
2010-11-21 10:32:23 +00:00
|
|
|
AVPacket vpkt;
|
2003-09-08 04:14:34 +00:00
|
|
|
|
|
|
|
} Wc3DemuxContext;
|
|
|
|
|
|
|
|
static int wc3_probe(AVProbeData *p)
|
|
|
|
{
|
|
|
|
if (p->buf_size < 12)
|
|
|
|
return 0;
|
|
|
|
|
2007-01-19 22:12:59 +00:00
|
|
|
if ((AV_RL32(&p->buf[0]) != FORM_TAG) ||
|
|
|
|
(AV_RL32(&p->buf[8]) != MOVE_TAG))
|
2003-09-08 04:14:34 +00:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
return AVPROBE_SCORE_MAX;
|
|
|
|
}
|
|
|
|
|
2012-01-12 12:20:36 +00:00
|
|
|
static int wc3_read_header(AVFormatContext *s)
|
2003-09-08 04:14:34 +00:00
|
|
|
{
|
2007-04-08 20:24:16 +00:00
|
|
|
Wc3DemuxContext *wc3 = s->priv_data;
|
2011-02-20 10:04:12 +00:00
|
|
|
AVIOContext *pb = s->pb;
|
2003-09-08 04:14:34 +00:00
|
|
|
unsigned int fourcc_tag;
|
|
|
|
unsigned int size;
|
|
|
|
AVStream *st;
|
|
|
|
int ret = 0;
|
2009-12-13 20:27:29 +00:00
|
|
|
char *buffer;
|
2003-09-08 04:14:34 +00:00
|
|
|
|
|
|
|
/* default context members */
|
|
|
|
wc3->width = WC3_DEFAULT_WIDTH;
|
|
|
|
wc3->height = WC3_DEFAULT_HEIGHT;
|
|
|
|
wc3->pts = 0;
|
|
|
|
wc3->video_stream_index = wc3->audio_stream_index = 0;
|
2010-11-21 10:32:23 +00:00
|
|
|
av_init_packet(&wc3->vpkt);
|
|
|
|
wc3->vpkt.data = NULL; wc3->vpkt.size = 0;
|
2003-09-08 04:14:34 +00:00
|
|
|
|
|
|
|
/* skip the first 3 32-bit numbers */
|
2011-03-15 08:14:38 +00:00
|
|
|
avio_skip(pb, 12);
|
2003-09-08 04:14:34 +00:00
|
|
|
|
|
|
|
/* traverse through the chunks and load the header information before
|
|
|
|
* the first BRCH tag */
|
2011-02-21 15:43:01 +00:00
|
|
|
fourcc_tag = avio_rl32(pb);
|
|
|
|
size = (avio_rb32(pb) + 1) & (~1);
|
2003-09-08 04:14:34 +00:00
|
|
|
|
|
|
|
do {
|
|
|
|
switch (fourcc_tag) {
|
|
|
|
|
|
|
|
case SOND_TAG:
|
|
|
|
case INDX_TAG:
|
|
|
|
/* SOND unknown, INDX unnecessary; ignore both */
|
2011-03-15 08:14:38 +00:00
|
|
|
avio_skip(pb, size);
|
2003-09-08 04:14:34 +00:00
|
|
|
break;
|
|
|
|
|
2007-12-01 00:07:51 +00:00
|
|
|
case PC__TAG:
|
2010-11-21 10:32:23 +00:00
|
|
|
/* number of palettes, unneeded */
|
2011-03-15 08:14:38 +00:00
|
|
|
avio_skip(pb, 12);
|
2003-09-08 04:14:34 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case BNAM_TAG:
|
|
|
|
/* load up the name */
|
2009-12-13 20:27:29 +00:00
|
|
|
buffer = av_malloc(size+1);
|
|
|
|
if (!buffer)
|
2010-04-03 14:15:00 +00:00
|
|
|
return AVERROR(ENOMEM);
|
2011-02-21 15:43:01 +00:00
|
|
|
if ((ret = avio_read(pb, buffer, size)) != size)
|
2007-07-19 15:23:32 +00:00
|
|
|
return AVERROR(EIO);
|
2009-12-13 20:27:29 +00:00
|
|
|
buffer[size] = 0;
|
2011-05-22 10:46:29 +00:00
|
|
|
av_dict_set(&s->metadata, "title", buffer,
|
|
|
|
AV_DICT_DONT_STRDUP_VAL);
|
2003-09-08 04:14:34 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case SIZE_TAG:
|
|
|
|
/* video resolution override */
|
2011-02-21 15:43:01 +00:00
|
|
|
wc3->width = avio_rl32(pb);
|
|
|
|
wc3->height = avio_rl32(pb);
|
2003-09-08 04:14:34 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case PALT_TAG:
|
|
|
|
/* one of several palettes */
|
2011-02-28 13:57:54 +00:00
|
|
|
avio_seek(pb, -8, SEEK_CUR);
|
2010-11-21 10:32:23 +00:00
|
|
|
av_append_packet(pb, &wc3->vpkt, 8 + PALETTE_SIZE);
|
2003-09-08 04:14:34 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2004-03-03 15:41:21 +00:00
|
|
|
av_log(s, AV_LOG_ERROR, " unrecognized WC3 chunk: %c%c%c%c (0x%02X%02X%02X%02X)\n",
|
2009-04-11 21:45:57 +00:00
|
|
|
(uint8_t)fourcc_tag, (uint8_t)(fourcc_tag >> 8), (uint8_t)(fourcc_tag >> 16), (uint8_t)(fourcc_tag >> 24),
|
|
|
|
(uint8_t)fourcc_tag, (uint8_t)(fourcc_tag >> 8), (uint8_t)(fourcc_tag >> 16), (uint8_t)(fourcc_tag >> 24));
|
2003-09-08 04:14:34 +00:00
|
|
|
return AVERROR_INVALIDDATA;
|
|
|
|
}
|
|
|
|
|
2011-02-21 15:43:01 +00:00
|
|
|
fourcc_tag = avio_rl32(pb);
|
2003-09-08 04:14:34 +00:00
|
|
|
/* chunk sizes are 16-bit aligned */
|
2011-02-21 15:43:01 +00:00
|
|
|
size = (avio_rb32(pb) + 1) & (~1);
|
2014-08-07 20:12:41 +00:00
|
|
|
if (avio_feof(pb))
|
2009-04-11 18:58:55 +00:00
|
|
|
return AVERROR(EIO);
|
2003-09-08 04:14:34 +00:00
|
|
|
|
|
|
|
} while (fourcc_tag != BRCH_TAG);
|
|
|
|
|
|
|
|
/* initialize the decoder streams */
|
2011-06-18 09:43:24 +00:00
|
|
|
st = avformat_new_stream(s, NULL);
|
2003-09-08 04:14:34 +00:00
|
|
|
if (!st)
|
2007-07-19 15:21:30 +00:00
|
|
|
return AVERROR(ENOMEM);
|
2011-11-29 18:28:15 +00:00
|
|
|
avpriv_set_pts_info(st, 33, 1, WC3_FRAME_FPS);
|
2003-09-08 04:14:34 +00:00
|
|
|
wc3->video_stream_index = st->index;
|
lavf: replace AVStream.codec with AVStream.codecpar
Currently, AVStream contains an embedded AVCodecContext instance, which
is used by demuxers to export stream parameters to the caller and by
muxers to receive stream parameters from the caller. It is also used
internally as the codec context that is passed to parsers.
In addition, it is also widely used by the callers as the decoding (when
demuxer) or encoding (when muxing) context, though this has been
officially discouraged since Libav 11.
There are multiple important problems with this approach:
- the fields in AVCodecContext are in general one of
* stream parameters
* codec options
* codec state
However, it's not clear which ones are which. It is consequently
unclear which fields are a demuxer allowed to set or a muxer allowed to
read. This leads to erratic behaviour depending on whether decoding or
encoding is being performed or not (and whether it uses the AVStream
embedded codec context).
- various synchronization issues arising from the fact that the same
context is used by several different APIs (muxers/demuxers,
parsers, bitstream filters and encoders/decoders) simultaneously, with
there being no clear rules for who can modify what and the different
processes being typically delayed with respect to each other.
- avformat_find_stream_info() making it necessary to support opening
and closing a single codec context multiple times, thus
complicating the semantics of freeing various allocated objects in the
codec context.
Those problems are resolved by replacing the AVStream embedded codec
context with a newly added AVCodecParameters instance, which stores only
the stream parameters exported by the demuxers or read by the muxers.
2014-06-18 18:42:52 +00:00
|
|
|
st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
|
|
|
|
st->codecpar->codec_id = AV_CODEC_ID_XAN_WC3;
|
|
|
|
st->codecpar->codec_tag = 0; /* no fourcc */
|
|
|
|
st->codecpar->width = wc3->width;
|
|
|
|
st->codecpar->height = wc3->height;
|
2003-09-08 04:14:34 +00:00
|
|
|
|
2011-06-18 09:43:24 +00:00
|
|
|
st = avformat_new_stream(s, NULL);
|
2003-09-08 04:14:34 +00:00
|
|
|
if (!st)
|
2007-07-19 15:21:30 +00:00
|
|
|
return AVERROR(ENOMEM);
|
2011-11-29 18:28:15 +00:00
|
|
|
avpriv_set_pts_info(st, 33, 1, WC3_FRAME_FPS);
|
2003-09-08 04:14:34 +00:00
|
|
|
wc3->audio_stream_index = st->index;
|
lavf: replace AVStream.codec with AVStream.codecpar
Currently, AVStream contains an embedded AVCodecContext instance, which
is used by demuxers to export stream parameters to the caller and by
muxers to receive stream parameters from the caller. It is also used
internally as the codec context that is passed to parsers.
In addition, it is also widely used by the callers as the decoding (when
demuxer) or encoding (when muxing) context, though this has been
officially discouraged since Libav 11.
There are multiple important problems with this approach:
- the fields in AVCodecContext are in general one of
* stream parameters
* codec options
* codec state
However, it's not clear which ones are which. It is consequently
unclear which fields are a demuxer allowed to set or a muxer allowed to
read. This leads to erratic behaviour depending on whether decoding or
encoding is being performed or not (and whether it uses the AVStream
embedded codec context).
- various synchronization issues arising from the fact that the same
context is used by several different APIs (muxers/demuxers,
parsers, bitstream filters and encoders/decoders) simultaneously, with
there being no clear rules for who can modify what and the different
processes being typically delayed with respect to each other.
- avformat_find_stream_info() making it necessary to support opening
and closing a single codec context multiple times, thus
complicating the semantics of freeing various allocated objects in the
codec context.
Those problems are resolved by replacing the AVStream embedded codec
context with a newly added AVCodecParameters instance, which stores only
the stream parameters exported by the demuxers or read by the muxers.
2014-06-18 18:42:52 +00:00
|
|
|
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
|
|
|
st->codecpar->codec_id = AV_CODEC_ID_PCM_S16LE;
|
|
|
|
st->codecpar->codec_tag = 1;
|
|
|
|
st->codecpar->channels = WC3_AUDIO_CHANNELS;
|
|
|
|
st->codecpar->channel_layout = AV_CH_LAYOUT_MONO;
|
|
|
|
st->codecpar->bits_per_coded_sample = WC3_AUDIO_BITS;
|
|
|
|
st->codecpar->sample_rate = WC3_SAMPLE_RATE;
|
|
|
|
st->codecpar->bit_rate = st->codecpar->channels * st->codecpar->sample_rate *
|
|
|
|
st->codecpar->bits_per_coded_sample;
|
|
|
|
st->codecpar->block_align = WC3_AUDIO_BITS * WC3_AUDIO_CHANNELS;
|
2003-09-08 04:14:34 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int wc3_read_packet(AVFormatContext *s,
|
|
|
|
AVPacket *pkt)
|
|
|
|
{
|
2007-04-08 20:24:16 +00:00
|
|
|
Wc3DemuxContext *wc3 = s->priv_data;
|
2011-02-20 10:04:12 +00:00
|
|
|
AVIOContext *pb = s->pb;
|
2003-09-08 04:14:34 +00:00
|
|
|
unsigned int fourcc_tag;
|
|
|
|
unsigned int size;
|
|
|
|
int packet_read = 0;
|
|
|
|
int ret = 0;
|
|
|
|
unsigned char text[1024];
|
|
|
|
|
|
|
|
while (!packet_read) {
|
|
|
|
|
2011-02-21 15:43:01 +00:00
|
|
|
fourcc_tag = avio_rl32(pb);
|
2003-09-08 04:14:34 +00:00
|
|
|
/* chunk sizes are 16-bit aligned */
|
2011-02-21 15:43:01 +00:00
|
|
|
size = (avio_rb32(pb) + 1) & (~1);
|
2014-08-07 20:12:41 +00:00
|
|
|
if (avio_feof(pb))
|
2009-04-11 18:58:55 +00:00
|
|
|
return AVERROR(EIO);
|
2003-09-08 04:14:34 +00:00
|
|
|
|
|
|
|
switch (fourcc_tag) {
|
|
|
|
|
|
|
|
case BRCH_TAG:
|
|
|
|
/* no-op */
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SHOT_TAG:
|
|
|
|
/* load up new palette */
|
2011-02-28 13:57:54 +00:00
|
|
|
avio_seek(pb, -8, SEEK_CUR);
|
2010-11-21 10:32:23 +00:00
|
|
|
av_append_packet(pb, &wc3->vpkt, 8 + 4);
|
2003-09-08 04:14:34 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case VGA__TAG:
|
|
|
|
/* send out video chunk */
|
2011-02-28 13:57:54 +00:00
|
|
|
avio_seek(pb, -8, SEEK_CUR);
|
2010-11-21 10:32:23 +00:00
|
|
|
ret= av_append_packet(pb, &wc3->vpkt, 8 + size);
|
|
|
|
// ignore error if we have some data
|
|
|
|
if (wc3->vpkt.size > 0)
|
|
|
|
ret = 0;
|
|
|
|
*pkt = wc3->vpkt;
|
|
|
|
wc3->vpkt.data = NULL; wc3->vpkt.size = 0;
|
2003-09-08 04:14:34 +00:00
|
|
|
pkt->stream_index = wc3->video_stream_index;
|
|
|
|
pkt->pts = wc3->pts;
|
|
|
|
packet_read = 1;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TEXT_TAG:
|
|
|
|
/* subtitle chunk */
|
|
|
|
#if 0
|
2011-03-15 08:14:38 +00:00
|
|
|
avio_skip(pb, size);
|
2003-09-08 04:14:34 +00:00
|
|
|
#else
|
2011-02-21 15:43:01 +00:00
|
|
|
if ((unsigned)size > sizeof(text) || (ret = avio_read(pb, text, size)) != size)
|
2007-07-19 15:23:32 +00:00
|
|
|
ret = AVERROR(EIO);
|
2003-09-08 04:14:34 +00:00
|
|
|
else {
|
|
|
|
int i = 0;
|
2004-03-03 15:41:21 +00:00
|
|
|
av_log (s, AV_LOG_DEBUG, "Subtitle time!\n");
|
2013-12-21 11:52:23 +00:00
|
|
|
if (i >= size || av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1)
|
|
|
|
return AVERROR_INVALIDDATA;
|
2004-03-03 15:41:21 +00:00
|
|
|
av_log (s, AV_LOG_DEBUG, " inglish: %s\n", &text[i + 1]);
|
2003-09-08 04:14:34 +00:00
|
|
|
i += text[i] + 1;
|
2013-12-21 11:52:23 +00:00
|
|
|
if (i >= size || av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1)
|
|
|
|
return AVERROR_INVALIDDATA;
|
2004-03-03 15:41:21 +00:00
|
|
|
av_log (s, AV_LOG_DEBUG, " doytsch: %s\n", &text[i + 1]);
|
2003-09-08 04:14:34 +00:00
|
|
|
i += text[i] + 1;
|
2013-12-21 11:52:23 +00:00
|
|
|
if (i >= size || av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1)
|
|
|
|
return AVERROR_INVALIDDATA;
|
2004-03-03 15:41:21 +00:00
|
|
|
av_log (s, AV_LOG_DEBUG, " fronsay: %s\n", &text[i + 1]);
|
2003-09-08 04:14:34 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
|
|
|
|
case AUDI_TAG:
|
|
|
|
/* send out audio chunk */
|
2005-05-26 20:17:12 +00:00
|
|
|
ret= av_get_packet(pb, pkt, size);
|
2003-09-08 04:14:34 +00:00
|
|
|
pkt->stream_index = wc3->audio_stream_index;
|
|
|
|
pkt->pts = wc3->pts;
|
|
|
|
|
|
|
|
/* time to advance pts */
|
2008-03-01 02:28:47 +00:00
|
|
|
wc3->pts++;
|
2003-09-08 04:14:34 +00:00
|
|
|
|
|
|
|
packet_read = 1;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2005-12-22 01:10:11 +00:00
|
|
|
av_log (s, AV_LOG_ERROR, " unrecognized WC3 chunk: %c%c%c%c (0x%02X%02X%02X%02X)\n",
|
2009-04-11 21:45:57 +00:00
|
|
|
(uint8_t)fourcc_tag, (uint8_t)(fourcc_tag >> 8), (uint8_t)(fourcc_tag >> 16), (uint8_t)(fourcc_tag >> 24),
|
|
|
|
(uint8_t)fourcc_tag, (uint8_t)(fourcc_tag >> 8), (uint8_t)(fourcc_tag >> 16), (uint8_t)(fourcc_tag >> 24));
|
2003-09-08 04:14:34 +00:00
|
|
|
ret = AVERROR_INVALIDDATA;
|
|
|
|
packet_read = 1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int wc3_read_close(AVFormatContext *s)
|
|
|
|
{
|
2007-04-08 20:24:16 +00:00
|
|
|
Wc3DemuxContext *wc3 = s->priv_data;
|
2003-09-08 04:14:34 +00:00
|
|
|
|
2010-11-21 10:32:23 +00:00
|
|
|
if (wc3->vpkt.size > 0)
|
2015-10-23 09:11:31 +00:00
|
|
|
av_packet_unref(&wc3->vpkt);
|
2003-09-08 04:14:34 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2011-01-25 22:03:28 +00:00
|
|
|
AVInputFormat ff_wc3_demuxer = {
|
2011-07-16 20:18:12 +00:00
|
|
|
.name = "wc3movie",
|
2012-07-24 21:51:41 +00:00
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("Wing Commander III movie"),
|
2011-07-16 20:18:12 +00:00
|
|
|
.priv_data_size = sizeof(Wc3DemuxContext),
|
|
|
|
.read_probe = wc3_probe,
|
|
|
|
.read_header = wc3_read_header,
|
|
|
|
.read_packet = wc3_read_packet,
|
|
|
|
.read_close = wc3_read_close,
|
2003-09-08 04:14:34 +00:00
|
|
|
};
|