2006-03-28 00:22:50 +02:00
|
|
|
/*
|
|
|
|
* NuppelVideo demuxer.
|
2009-01-19 16:46:40 +01:00
|
|
|
* Copyright (c) 2006 Reimar Doeffinger
|
2006-03-28 00:22:50 +02:00
|
|
|
*
|
2006-10-07 17:30:46 +02:00
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2006-03-28 00:22:50 +02:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2006-10-07 17:30:46 +02:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2006-03-28 00:22:50 +02:00
|
|
|
*
|
2006-10-07 17:30:46 +02:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2006-03-28 00:22:50 +02: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 17:30:46 +02:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2006-03-28 00:22:50 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
2009-01-11 23:19:48 +01:00
|
|
|
|
|
|
|
#include "libavutil/intreadwrite.h"
|
2011-11-27 15:04:16 +01:00
|
|
|
#include "libavutil/intfloat.h"
|
2006-03-28 00:22:50 +02:00
|
|
|
#include "avformat.h"
|
2011-11-29 19:28:15 +01:00
|
|
|
#include "internal.h"
|
2006-07-12 02:09:34 +02:00
|
|
|
#include "riff.h"
|
2006-03-28 00:22:50 +02:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int v_id;
|
|
|
|
int a_id;
|
2007-09-09 09:25:52 +02:00
|
|
|
int rtjpg_video;
|
2006-03-28 00:22:50 +02:00
|
|
|
} NUVContext;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
NUV_VIDEO = 'V',
|
|
|
|
NUV_EXTRADATA = 'D',
|
|
|
|
NUV_AUDIO = 'A',
|
|
|
|
NUV_SEEKP = 'R',
|
|
|
|
NUV_MYTHEXT = 'X'
|
2008-12-11 20:19:23 +01:00
|
|
|
} nuv_frametype;
|
2006-03-28 00:22:50 +02:00
|
|
|
|
|
|
|
static int nuv_probe(AVProbeData *p) {
|
|
|
|
if (!memcmp(p->buf, "NuppelVideo", 12))
|
|
|
|
return AVPROBE_SCORE_MAX;
|
|
|
|
if (!memcmp(p->buf, "MythTVVideo", 12))
|
|
|
|
return AVPROBE_SCORE_MAX;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2011-10-30 18:27:33 +01:00
|
|
|
/// little macro to sanitize packet size
|
2006-03-28 00:22:50 +02:00
|
|
|
#define PKTSIZE(s) (s & 0xffffff)
|
|
|
|
|
|
|
|
/**
|
2011-06-23 22:41:54 +02:00
|
|
|
* @brief read until we found all data needed for decoding
|
|
|
|
* @param vst video stream of which to change parameters
|
|
|
|
* @param ast video stream of which to change parameters
|
|
|
|
* @param myth set if this is a MythTVVideo format file
|
|
|
|
* @return 1 if all required codec data was found
|
2006-03-28 00:22:50 +02:00
|
|
|
*/
|
2011-02-20 11:04:12 +01:00
|
|
|
static int get_codec_data(AVIOContext *pb, AVStream *vst,
|
2006-03-28 00:22:50 +02:00
|
|
|
AVStream *ast, int myth) {
|
2008-12-11 20:19:23 +01:00
|
|
|
nuv_frametype frametype;
|
2006-03-28 00:22:50 +02:00
|
|
|
if (!vst && !myth)
|
|
|
|
return 1; // no codec data needed
|
|
|
|
while (!url_feof(pb)) {
|
|
|
|
int size, subtype;
|
2011-02-21 16:43:01 +01:00
|
|
|
frametype = avio_r8(pb);
|
2006-03-28 00:22:50 +02:00
|
|
|
switch (frametype) {
|
|
|
|
case NUV_EXTRADATA:
|
2011-02-21 16:43:01 +01:00
|
|
|
subtype = avio_r8(pb);
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, 6);
|
2011-02-21 16:43:01 +01:00
|
|
|
size = PKTSIZE(avio_rl32(pb));
|
2006-04-20 12:38:15 +02:00
|
|
|
if (vst && subtype == 'R') {
|
2006-03-28 00:22:50 +02:00
|
|
|
vst->codec->extradata_size = size;
|
|
|
|
vst->codec->extradata = av_malloc(size);
|
2011-02-21 16:43:01 +01:00
|
|
|
avio_read(pb, vst->codec->extradata, size);
|
2006-03-28 00:22:50 +02:00
|
|
|
size = 0;
|
|
|
|
if (!myth)
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case NUV_MYTHEXT:
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, 7);
|
2011-02-21 16:43:01 +01:00
|
|
|
size = PKTSIZE(avio_rl32(pb));
|
2006-03-28 00:22:50 +02:00
|
|
|
if (size != 128 * 4)
|
|
|
|
break;
|
2011-02-21 16:43:01 +01:00
|
|
|
avio_rl32(pb); // version
|
2006-03-28 00:22:50 +02:00
|
|
|
if (vst) {
|
2011-02-21 16:43:01 +01:00
|
|
|
vst->codec->codec_tag = avio_rl32(pb);
|
2006-03-28 00:22:50 +02:00
|
|
|
vst->codec->codec_id =
|
2009-06-23 01:09:34 +02:00
|
|
|
ff_codec_get_id(ff_codec_bmp_tags, vst->codec->codec_tag);
|
2007-09-15 10:19:01 +02:00
|
|
|
if (vst->codec->codec_tag == MKTAG('R', 'J', 'P', 'G'))
|
2012-08-05 11:11:04 +02:00
|
|
|
vst->codec->codec_id = AV_CODEC_ID_NUV;
|
2006-03-28 00:22:50 +02:00
|
|
|
} else
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, 4);
|
2006-03-28 00:22:50 +02:00
|
|
|
|
|
|
|
if (ast) {
|
2011-02-21 16:43:01 +01:00
|
|
|
ast->codec->codec_tag = avio_rl32(pb);
|
|
|
|
ast->codec->sample_rate = avio_rl32(pb);
|
|
|
|
ast->codec->bits_per_coded_sample = avio_rl32(pb);
|
|
|
|
ast->codec->channels = avio_rl32(pb);
|
2006-03-28 00:22:50 +02:00
|
|
|
ast->codec->codec_id =
|
2009-06-23 01:09:34 +02:00
|
|
|
ff_wav_codec_get_id(ast->codec->codec_tag,
|
2008-09-08 16:24:59 +02:00
|
|
|
ast->codec->bits_per_coded_sample);
|
2007-05-27 10:06:45 +02:00
|
|
|
ast->need_parsing = AVSTREAM_PARSE_FULL;
|
2006-03-28 00:22:50 +02:00
|
|
|
} else
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, 4 * 4);
|
2006-03-28 00:22:50 +02:00
|
|
|
|
|
|
|
size -= 6 * 4;
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, size);
|
2006-03-28 00:22:50 +02:00
|
|
|
return 1;
|
|
|
|
case NUV_SEEKP:
|
|
|
|
size = 11;
|
|
|
|
break;
|
|
|
|
default:
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, 7);
|
2011-02-21 16:43:01 +01:00
|
|
|
size = PKTSIZE(avio_rl32(pb));
|
2006-03-28 00:22:50 +02:00
|
|
|
break;
|
|
|
|
}
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, size);
|
2006-03-28 00:22:50 +02:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-01-12 13:20:36 +01:00
|
|
|
static int nuv_header(AVFormatContext *s) {
|
2007-04-08 22:24:16 +02:00
|
|
|
NUVContext *ctx = s->priv_data;
|
2011-02-20 11:04:12 +01:00
|
|
|
AVIOContext *pb = s->pb;
|
2009-04-07 23:16:11 +02:00
|
|
|
char id_string[12];
|
2006-03-28 00:22:50 +02:00
|
|
|
double aspect, fps;
|
|
|
|
int is_mythtv, width, height, v_packs, a_packs;
|
|
|
|
int stream_nr = 0;
|
|
|
|
AVStream *vst = NULL, *ast = NULL;
|
2011-02-21 16:43:01 +01:00
|
|
|
avio_read(pb, id_string, 12);
|
2006-03-28 00:22:50 +02:00
|
|
|
is_mythtv = !memcmp(id_string, "MythTVVideo", 12);
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, 5); // version string
|
|
|
|
avio_skip(pb, 3); // padding
|
2011-02-21 16:43:01 +01:00
|
|
|
width = avio_rl32(pb);
|
|
|
|
height = avio_rl32(pb);
|
|
|
|
avio_rl32(pb); // unused, "desiredwidth"
|
|
|
|
avio_rl32(pb); // unused, "desiredheight"
|
|
|
|
avio_r8(pb); // 'P' == progressive, 'I' == interlaced
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, 3); // padding
|
2011-11-27 15:04:16 +01:00
|
|
|
aspect = av_int2double(avio_rl64(pb));
|
2008-07-25 06:10:32 +02:00
|
|
|
if (aspect > 0.9999 && aspect < 1.0001)
|
|
|
|
aspect = 4.0 / 3.0;
|
2011-11-27 15:04:16 +01:00
|
|
|
fps = av_int2double(avio_rl64(pb));
|
2006-03-28 00:22:50 +02:00
|
|
|
|
|
|
|
// number of packets per stream type, -1 means unknown, e.g. streaming
|
2011-02-21 16:43:01 +01:00
|
|
|
v_packs = avio_rl32(pb);
|
|
|
|
a_packs = avio_rl32(pb);
|
|
|
|
avio_rl32(pb); // text
|
2006-03-28 00:22:50 +02:00
|
|
|
|
2011-02-21 16:43:01 +01:00
|
|
|
avio_rl32(pb); // keyframe distance (?)
|
2006-03-28 00:22:50 +02:00
|
|
|
|
|
|
|
if (v_packs) {
|
|
|
|
ctx->v_id = stream_nr++;
|
2011-06-18 11:43:24 +02:00
|
|
|
vst = avformat_new_stream(s, NULL);
|
2008-05-29 17:25:45 +02:00
|
|
|
if (!vst)
|
|
|
|
return AVERROR(ENOMEM);
|
2010-03-31 01:30:55 +02:00
|
|
|
vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
2012-08-05 11:11:04 +02:00
|
|
|
vst->codec->codec_id = AV_CODEC_ID_NUV;
|
2006-03-28 00:22:50 +02:00
|
|
|
vst->codec->width = width;
|
|
|
|
vst->codec->height = height;
|
2008-09-08 16:24:59 +02:00
|
|
|
vst->codec->bits_per_coded_sample = 10;
|
2008-08-24 01:43:20 +02:00
|
|
|
vst->sample_aspect_ratio = av_d2q(aspect * height / width, 10000);
|
2012-06-26 13:10:01 +02:00
|
|
|
#if FF_API_R_FRAME_RATE
|
|
|
|
vst->r_frame_rate =
|
|
|
|
#endif
|
|
|
|
vst->avg_frame_rate = av_d2q(fps, 60000);
|
2011-11-29 19:28:15 +01:00
|
|
|
avpriv_set_pts_info(vst, 32, 1, 1000);
|
2006-03-28 00:22:50 +02:00
|
|
|
} else
|
|
|
|
ctx->v_id = -1;
|
|
|
|
|
|
|
|
if (a_packs) {
|
|
|
|
ctx->a_id = stream_nr++;
|
2011-06-18 11:43:24 +02:00
|
|
|
ast = avformat_new_stream(s, NULL);
|
2008-05-29 17:25:45 +02:00
|
|
|
if (!ast)
|
|
|
|
return AVERROR(ENOMEM);
|
2010-03-31 01:30:55 +02:00
|
|
|
ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
|
2012-08-05 11:11:04 +02:00
|
|
|
ast->codec->codec_id = AV_CODEC_ID_PCM_S16LE;
|
2006-03-28 00:22:50 +02:00
|
|
|
ast->codec->channels = 2;
|
|
|
|
ast->codec->sample_rate = 44100;
|
|
|
|
ast->codec->bit_rate = 2 * 2 * 44100 * 8;
|
|
|
|
ast->codec->block_align = 2 * 2;
|
2008-09-08 16:24:59 +02:00
|
|
|
ast->codec->bits_per_coded_sample = 16;
|
2011-11-29 19:28:15 +01:00
|
|
|
avpriv_set_pts_info(ast, 32, 1, 1000);
|
2006-03-28 00:22:50 +02:00
|
|
|
} else
|
|
|
|
ctx->a_id = -1;
|
|
|
|
|
|
|
|
get_codec_data(pb, vst, ast, is_mythtv);
|
2012-08-05 11:11:04 +02:00
|
|
|
ctx->rtjpg_video = vst && vst->codec->codec_id == AV_CODEC_ID_NUV;
|
2006-03-28 00:22:50 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#define HDRSIZE 12
|
|
|
|
|
|
|
|
static int nuv_packet(AVFormatContext *s, AVPacket *pkt) {
|
2007-04-08 22:24:16 +02:00
|
|
|
NUVContext *ctx = s->priv_data;
|
2011-02-20 11:04:12 +01:00
|
|
|
AVIOContext *pb = s->pb;
|
2006-03-28 00:22:50 +02:00
|
|
|
uint8_t hdr[HDRSIZE];
|
2008-12-11 20:19:23 +01:00
|
|
|
nuv_frametype frametype;
|
2006-03-28 00:22:50 +02:00
|
|
|
int ret, size;
|
|
|
|
while (!url_feof(pb)) {
|
2007-09-09 09:25:52 +02:00
|
|
|
int copyhdrsize = ctx->rtjpg_video ? HDRSIZE : 0;
|
2011-03-03 20:11:45 +01:00
|
|
|
uint64_t pos = avio_tell(pb);
|
2011-02-21 16:43:01 +01:00
|
|
|
ret = avio_read(pb, hdr, HDRSIZE);
|
2009-04-07 22:52:37 +02:00
|
|
|
if (ret < HDRSIZE)
|
|
|
|
return ret < 0 ? ret : AVERROR(EIO);
|
2006-03-28 00:22:50 +02:00
|
|
|
frametype = hdr[0];
|
2007-01-19 23:12:59 +01:00
|
|
|
size = PKTSIZE(AV_RL32(&hdr[8]));
|
2006-03-28 00:22:50 +02:00
|
|
|
switch (frametype) {
|
|
|
|
case NUV_EXTRADATA:
|
2007-09-09 09:25:52 +02:00
|
|
|
if (!ctx->rtjpg_video) {
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, size);
|
2007-09-09 09:25:52 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case NUV_VIDEO:
|
2006-03-28 00:22:50 +02:00
|
|
|
if (ctx->v_id < 0) {
|
|
|
|
av_log(s, AV_LOG_ERROR, "Video packet in file without video stream!\n");
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, size);
|
2006-03-28 00:22:50 +02:00
|
|
|
break;
|
|
|
|
}
|
2007-09-09 09:25:52 +02:00
|
|
|
ret = av_new_packet(pkt, copyhdrsize + size);
|
2006-03-28 00:22:50 +02:00
|
|
|
if (ret < 0)
|
|
|
|
return ret;
|
2011-09-11 17:59:32 +02:00
|
|
|
|
2009-03-09 12:35:59 +01:00
|
|
|
pkt->pos = pos;
|
2011-09-11 17:59:32 +02:00
|
|
|
pkt->flags |= hdr[2] == 0 ? AV_PKT_FLAG_KEY : 0;
|
2007-01-19 23:12:59 +01:00
|
|
|
pkt->pts = AV_RL32(&hdr[4]);
|
2006-03-28 00:22:50 +02:00
|
|
|
pkt->stream_index = ctx->v_id;
|
2007-09-09 09:25:52 +02:00
|
|
|
memcpy(pkt->data, hdr, copyhdrsize);
|
2011-02-21 16:43:01 +01:00
|
|
|
ret = avio_read(pb, pkt->data + copyhdrsize, size);
|
2009-04-09 16:16:22 +02:00
|
|
|
if (ret < 0) {
|
|
|
|
av_free_packet(pkt);
|
|
|
|
return ret;
|
|
|
|
}
|
2009-04-08 22:20:42 +02:00
|
|
|
if (ret < size)
|
|
|
|
av_shrink_packet(pkt, copyhdrsize + ret);
|
2009-04-07 23:25:02 +02:00
|
|
|
return 0;
|
2006-03-28 00:22:50 +02:00
|
|
|
case NUV_AUDIO:
|
|
|
|
if (ctx->a_id < 0) {
|
|
|
|
av_log(s, AV_LOG_ERROR, "Audio packet in file without audio stream!\n");
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, size);
|
2006-03-28 00:22:50 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
ret = av_get_packet(pb, pkt, size);
|
2010-03-31 14:29:58 +02:00
|
|
|
pkt->flags |= AV_PKT_FLAG_KEY;
|
2009-03-09 12:35:59 +01:00
|
|
|
pkt->pos = pos;
|
2007-01-19 23:12:59 +01:00
|
|
|
pkt->pts = AV_RL32(&hdr[4]);
|
2006-03-28 00:22:50 +02:00
|
|
|
pkt->stream_index = ctx->a_id;
|
2009-04-07 23:25:02 +02:00
|
|
|
if (ret < 0) return ret;
|
|
|
|
return 0;
|
2006-03-28 00:22:50 +02:00
|
|
|
case NUV_SEEKP:
|
|
|
|
// contains no data, size value is invalid
|
|
|
|
break;
|
|
|
|
default:
|
2011-03-15 09:14:38 +01:00
|
|
|
avio_skip(pb, size);
|
2006-03-28 00:22:50 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2007-07-19 17:23:32 +02:00
|
|
|
return AVERROR(EIO);
|
2006-03-28 00:22:50 +02:00
|
|
|
}
|
|
|
|
|
2011-09-12 19:33:31 +02:00
|
|
|
/**
|
|
|
|
* \brief looks for the string RTjjjjjjjjjj in the stream too resync reading
|
|
|
|
* \return 1 if the syncword is found 0 otherwise.
|
|
|
|
*/
|
|
|
|
static int nuv_resync(AVFormatContext *s, int64_t pos_limit) {
|
|
|
|
AVIOContext *pb = s->pb;
|
|
|
|
uint32_t tag = 0;
|
|
|
|
while(!url_feof(pb) && avio_tell(pb) < pos_limit) {
|
|
|
|
tag = (tag << 8) | avio_r8(pb);
|
|
|
|
if (tag == MKBETAG('R','T','j','j') &&
|
|
|
|
(tag = avio_rb32(pb)) == MKBETAG('j','j','j','j') &&
|
|
|
|
(tag = avio_rb32(pb)) == MKBETAG('j','j','j','j'))
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief attempts to read a timestamp from stream at the given stream position
|
2012-03-12 23:30:13 +01:00
|
|
|
* \return timestamp if successful and AV_NOPTS_VALUE if failure
|
2011-09-12 19:33:31 +02:00
|
|
|
*/
|
|
|
|
static int64_t nuv_read_dts(AVFormatContext *s, int stream_index,
|
|
|
|
int64_t *ppos, int64_t pos_limit)
|
|
|
|
{
|
|
|
|
NUVContext *ctx = s->priv_data;
|
|
|
|
AVIOContext *pb = s->pb;
|
|
|
|
uint8_t hdr[HDRSIZE];
|
|
|
|
nuv_frametype frametype;
|
|
|
|
int size, key, idx;
|
|
|
|
int64_t pos, dts;
|
|
|
|
|
|
|
|
if (avio_seek(pb, *ppos, SEEK_SET) < 0)
|
|
|
|
return AV_NOPTS_VALUE;
|
|
|
|
|
|
|
|
if (!nuv_resync(s, pos_limit))
|
|
|
|
return AV_NOPTS_VALUE;
|
|
|
|
|
|
|
|
while (!url_feof(pb) && avio_tell(pb) < pos_limit) {
|
|
|
|
if (avio_read(pb, hdr, HDRSIZE) < HDRSIZE)
|
|
|
|
return AV_NOPTS_VALUE;
|
|
|
|
frametype = hdr[0];
|
|
|
|
size = PKTSIZE(AV_RL32(&hdr[8]));
|
|
|
|
switch (frametype) {
|
|
|
|
case NUV_SEEKP:
|
|
|
|
break;
|
|
|
|
case NUV_AUDIO:
|
|
|
|
case NUV_VIDEO:
|
|
|
|
if (frametype == NUV_VIDEO) {
|
|
|
|
idx = ctx->v_id;
|
|
|
|
key = hdr[2] == 0;
|
|
|
|
} else {
|
|
|
|
idx = ctx->a_id;
|
|
|
|
key = 1;
|
|
|
|
}
|
|
|
|
if (stream_index == idx) {
|
|
|
|
|
|
|
|
pos = avio_tell(s->pb) - HDRSIZE;
|
|
|
|
dts = AV_RL32(&hdr[4]);
|
|
|
|
|
|
|
|
// TODO - add general support in av_gen_search, so it adds positions after reading timestamps
|
|
|
|
av_add_index_entry(s->streams[stream_index], pos, dts, size + HDRSIZE, 0,
|
|
|
|
key ? AVINDEX_KEYFRAME : 0);
|
|
|
|
|
|
|
|
*ppos = pos;
|
|
|
|
return dts;
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
avio_skip(pb, size);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return AV_NOPTS_VALUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-01-25 23:03:28 +01:00
|
|
|
AVInputFormat ff_nuv_demuxer = {
|
2011-07-16 22:18:12 +02:00
|
|
|
.name = "nuv",
|
2012-07-24 23:51:41 +02:00
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("NuppelVideo"),
|
2011-07-16 22:18:12 +02:00
|
|
|
.priv_data_size = sizeof(NUVContext),
|
|
|
|
.read_probe = nuv_probe,
|
|
|
|
.read_header = nuv_header,
|
|
|
|
.read_packet = nuv_packet,
|
2011-09-12 19:33:31 +02:00
|
|
|
.read_timestamp = nuv_read_dts,
|
2012-04-06 16:50:48 +02:00
|
|
|
.flags = AVFMT_GENERIC_INDEX,
|
2006-03-28 00:22:50 +02:00
|
|
|
};
|