FFmpeg
Loading...
Searching...
No Matches
argo_asf.c
Go to the documentation of this file.
1/*
2 * Argonaut Games ASF (de)muxer
3 *
4 * Copyright (C) 2020 Zane van Iperen (zane@zanevaniperen.com)
5 *
6 * This file is part of FFmpeg.
7 *
8 * FFmpeg is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * FFmpeg is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23#include "config_components.h"
24
25#include "libavutil/avstring.h"
26#include "avformat.h"
27#include "avio_internal.h"
28#include "demux.h"
29#include "internal.h"
30#include "mux.h"
33#include "libavutil/avassert.h"
34#include "libavutil/opt.h"
35#include "argo_asf.h"
36
37/* Maximum number of blocks to read at once. */
38#define ASF_NB_BLOCKS 32
39
45
53
55{
56 hdr->magic = AV_RL32(buf + 0);
57 hdr->version_major = AV_RL16(buf + 4);
58 hdr->version_minor = AV_RL16(buf + 6);
59 hdr->num_chunks = AV_RL32(buf + 8);
60 hdr->chunk_offset = AV_RL32(buf + 12);
61 memcpy(hdr->name, buf + 16, ASF_NAME_SIZE);
62 hdr->name[ASF_NAME_SIZE] = '\0';
63}
64
66{
67 if (hdr->magic != ASF_TAG || hdr->num_chunks == 0)
69
72
73 return 0;
74}
75
77{
78 hdr->num_blocks = AV_RL32(buf + 0);
79 hdr->num_samples = AV_RL32(buf + 4);
80 hdr->unk1 = AV_RL32(buf + 8);
81 hdr->sample_rate = AV_RL16(buf + 12);
82 hdr->unk2 = AV_RL16(buf + 14);
83 hdr->flags = AV_RL32(buf + 16);
84}
85
87 const ArgoASFChunkHeader *ckhdr)
88{
89 if (ckhdr->num_samples != ASF_SAMPLE_COUNT) {
90 av_log(s, AV_LOG_ERROR, "Invalid sample count. Got %u, expected %d\n",
93 }
94
95 if ((ckhdr->flags & ASF_CF_ALWAYS1) != ASF_CF_ALWAYS1 || (ckhdr->flags & ASF_CF_ALWAYS0) != 0) {
96 avpriv_request_sample(s, "Nonstandard flags (0x%08X)", ckhdr->flags);
98 }
99
103
104 if (ckhdr->flags & ASF_CF_STEREO) {
106 } else {
108 }
109
110 /* v1.1 files (FX Fighter) are all marked as 44100, but are actually 22050. */
111 if (fhdr->version_major == 1 && fhdr->version_minor == 1)
112 st->codecpar->sample_rate = 22050;
113 else
114 st->codecpar->sample_rate = ckhdr->sample_rate;
115
117
118 if (!(ckhdr->flags & ASF_CF_BITS_PER_SAMPLE)) {
119 /* The header allows for these, but I've never seen any files with them. */
120 avpriv_request_sample(s, "Non 16-bit samples");
122 }
123
124 /*
125 * (nchannel control bytes) + ((bytes_per_channel) * nchannel)
126 * For mono, this is 17. For stereo, this is 34.
127 */
129 (ckhdr->num_samples / 2) *
131
133 st->codecpar->sample_rate *
135
137 st->start_time = 0;
138
139 if (fhdr->num_chunks == 1) {
140 st->duration = ckhdr->num_blocks * ckhdr->num_samples;
141 st->nb_frames = ckhdr->num_blocks;
142 }
143
144 return 0;
145}
146
147#if CONFIG_ARGO_ASF_DEMUXER
148/*
149 * Known versions:
150 * 1.1: https://samples.ffmpeg.org/game-formats/brender/part2.zip
151 * FX Fighter
152 * 1.2: Croc! Legend of the Gobbos
153 * 2.1: Croc 2
154 * The Emperor's New Groove
155 * Disney's Aladdin in Nasira's Revenge
156 */
157static int argo_asf_is_known_version(const ArgoASFFileHeader *hdr)
158{
159 return (hdr->version_major == 1 && hdr->version_minor == 1) ||
160 (hdr->version_major == 1 && hdr->version_minor == 2) ||
161 (hdr->version_major == 2 && hdr->version_minor == 1);
162}
163
164static int argo_asf_probe(const AVProbeData *p)
165{
167
169
171
172 if (hdr.magic != ASF_TAG)
173 return 0;
174
175 if (!argo_asf_is_known_version(&hdr))
176 return AVPROBE_SCORE_EXTENSION / 2;
177
178 return AVPROBE_SCORE_EXTENSION + 1;
179}
180
181static int argo_asf_read_header(AVFormatContext *s)
182{
183 int64_t ret;
184 AVIOContext *pb = s->pb;
185 AVStream *st;
186 ArgoASFDemuxContext *asf = s->priv_data;
187 uint8_t buf[ASF_MIN_BUFFER_SIZE];
188
189 if (!(st = avformat_new_stream(s, NULL)))
190 return AVERROR(ENOMEM);
191
192 if ((ret = ffio_read_size(pb, buf, ASF_FILE_HEADER_SIZE)) < 0)
193 return ret;
194
196
197 if ((ret = ff_argo_asf_validate_file_header(s, &asf->fhdr)) < 0)
198 return ret;
199
200 /* This should only be 1 in ASF files. >1 is fine if in BRP. */
201 if (asf->fhdr.num_chunks != 1)
202 return AVERROR_INVALIDDATA;
203
204 if ((ret = avio_skip(pb, asf->fhdr.chunk_offset - ASF_FILE_HEADER_SIZE)) < 0)
205 return ret;
206
207 if ((ret = ffio_read_size(pb, buf, ASF_CHUNK_HEADER_SIZE)) < 0)
208 return ret;
209
211
212 av_dict_set(&s->metadata, "title", asf->fhdr.name, 0);
213
214 return ff_argo_asf_fill_stream(s, st, &asf->fhdr, &asf->ckhdr);
215}
216
217static int argo_asf_read_packet(AVFormatContext *s, AVPacket *pkt)
218{
219 ArgoASFDemuxContext *asf = s->priv_data;
220
221 AVStream *st = s->streams[0];
222 AVIOContext *pb = s->pb;
223 int ret;
224
225 if (asf->blocks_read >= asf->ckhdr.num_blocks)
226 return AVERROR_EOF;
227
228 ret = av_get_packet(pb, pkt, st->codecpar->block_align *
230 if (ret < 0)
231 return ret;
232
233 /* Something real screwy is going on. */
234 if (ret % st->codecpar->block_align != 0)
235 return AVERROR_INVALIDDATA;
236
237
238 pkt->stream_index = st->index;
239 pkt->duration = asf->ckhdr.num_samples * (ret / st->codecpar->block_align);
240 pkt->pts = asf->blocks_read * asf->ckhdr.num_samples;
241 asf->blocks_read += (ret / st->codecpar->block_align);
242
243 pkt->flags &= ~AV_PKT_FLAG_CORRUPT;
244 return 0;
245}
246
247static int argo_asf_seek(AVFormatContext *s, int stream_index,
248 int64_t pts, int flags)
249{
250 ArgoASFDemuxContext *asf = s->priv_data;
251 AVStream *st = s->streams[stream_index];
253 uint32_t block = pts / asf->ckhdr.num_samples;
254
255 if (block >= asf->ckhdr.num_blocks)
256 return -1;
257
260
261 if ((offset = avio_seek(s->pb, offset, SEEK_SET)) < 0)
262 return offset;
263
264 asf->blocks_read = block;
265 return 0;
266}
267
268/*
269 * Not actually sure what ASF stands for.
270 * - Argonaut Sound File?
271 * - Audio Stream File?
272 */
274 .p.name = "argo_asf",
275 .p.long_name = NULL_IF_CONFIG_SMALL("Argonaut Games ASF"),
276 .priv_data_size = sizeof(ArgoASFDemuxContext),
277 .read_probe = argo_asf_probe,
278 .read_header = argo_asf_read_header,
279 .read_packet = argo_asf_read_packet,
280 .read_seek = argo_asf_seek,
281};
282#endif
283
284#if CONFIG_ARGO_ASF_MUXER
285static int argo_asf_write_init(AVFormatContext *s)
286{
287 ArgoASFMuxContext *ctx = s->priv_data;
288 const AVCodecParameters *par = s->streams[0]->codecpar;
289
290 if (ctx->version_major == 1 && ctx->version_minor == 1 && par->sample_rate != 22050) {
291 av_log(s, AV_LOG_ERROR, "ASF v1.1 files only support a sample rate of 22050\n");
292 return AVERROR(EINVAL);
293 }
294
295 if (par->ch_layout.nb_channels > 2) {
296 av_log(s, AV_LOG_ERROR, "ASF files only support up to 2 channels\n");
297 return AVERROR(EINVAL);
298 }
299
300 if (par->block_align != 17 * par->ch_layout.nb_channels)
301 return AVERROR(EINVAL);
302
303 if (par->sample_rate > UINT16_MAX) {
304 av_log(s, AV_LOG_ERROR, "Sample rate too large\n");
305 return AVERROR(EINVAL);
306 }
307
308 if (!(s->pb->seekable & AVIO_SEEKABLE_NORMAL)) {
309 av_log(s, AV_LOG_ERROR, "Stream not seekable, unable to write output file\n");
310 return AVERROR(EINVAL);
311 }
312
313 return 0;
314}
315
316static void argo_asf_write_file_header(const ArgoASFFileHeader *fhdr, AVIOContext *pb)
317{
318 avio_wl32( pb, fhdr->magic);
319 avio_wl16( pb, fhdr->version_major);
320 avio_wl16( pb, fhdr->version_minor);
321 avio_wl32( pb, fhdr->num_chunks);
322 avio_wl32( pb, fhdr->chunk_offset);
323 avio_write(pb, fhdr->name, ASF_NAME_SIZE);
324}
325
326static void argo_asf_write_chunk_header(const ArgoASFChunkHeader *ckhdr, AVIOContext *pb)
327{
328 avio_wl32(pb, ckhdr->num_blocks);
329 avio_wl32(pb, ckhdr->num_samples);
330 avio_wl32(pb, ckhdr->unk1);
331 avio_wl16(pb, ckhdr->sample_rate);
332 avio_wl16(pb, ckhdr->unk2);
333 avio_wl32(pb, ckhdr->flags);
334}
335
336static int argo_asf_write_header(AVFormatContext *s)
337{
338 const AVCodecParameters *par = s->streams[0]->codecpar;
339 ArgoASFMuxContext *ctx = s->priv_data;
341 ArgoASFFileHeader fhdr = {
342 .magic = ASF_TAG,
343 .version_major = (uint16_t)ctx->version_major,
344 .version_minor = (uint16_t)ctx->version_minor,
345 .num_chunks = 1,
346 .chunk_offset = ASF_FILE_HEADER_SIZE
347 };
349 const char *name, *end;
350 size_t len;
351
352 /*
353 * If the user specified a name, use it as is. Otherwise,
354 * try to use metadata (if present), then fall back to the
355 * filename (minus extension).
356 */
357 if (ctx->name) {
358 name = ctx->name;
359 len = strlen(ctx->name);
360 } else if ((t = av_dict_get(s->metadata, "title", NULL, 0))) {
361 name = t->value;
362 len = strlen(t->value);
363 } else if (!(end = strrchr((name = av_basename(s->url)), '.'))) {
364 len = strlen(name);
365 } else {
366 len = end - name;
367 }
368 memcpy(fhdr.name, name, FFMIN(len, ASF_NAME_SIZE));
369
370 chdr.num_blocks = 0;
372 chdr.unk1 = 0;
373
374 if (ctx->version_major == 1 && ctx->version_minor == 1)
375 chdr.sample_rate = 44100;
376 else
377 chdr.sample_rate = par->sample_rate;
378
379 chdr.unk2 = ~0;
381
382 if (par->ch_layout.nb_channels == 2)
383 chdr.flags |= ASF_CF_STEREO;
384
385 argo_asf_write_file_header(&fhdr, s->pb);
386 argo_asf_write_chunk_header(&chdr, s->pb);
387 return 0;
388}
389
390static int argo_asf_write_packet(AVFormatContext *s, AVPacket *pkt)
391{
392 ArgoASFMuxContext *ctx = s->priv_data;
393 AVCodecParameters *par = s->streams[0]->codecpar;
394 int nb_blocks = pkt->size / par->block_align;
395
396 if (pkt->size % par->block_align != 0)
397 return AVERROR_INVALIDDATA;
398
399 if (ctx->nb_blocks + nb_blocks > UINT32_MAX)
400 return AVERROR_INVALIDDATA;
401
402 avio_write(s->pb, pkt->data, pkt->size);
403
404 ctx->nb_blocks += nb_blocks;
405 return 0;
406}
407
408static int argo_asf_write_trailer(AVFormatContext *s)
409{
410 ArgoASFMuxContext *ctx = s->priv_data;
411 int64_t ret;
412
413 if ((ret = avio_seek(s->pb, ASF_FILE_HEADER_SIZE, SEEK_SET)) < 0)
414 return ret;
415
416 avio_wl32(s->pb, (uint32_t)ctx->nb_blocks);
417 return 0;
418}
419
420static const AVOption argo_asf_options[] = {
421 {
422 .name = "version_major",
423 .help = "override file major version",
424 .offset = offsetof(ArgoASFMuxContext, version_major),
425 .type = AV_OPT_TYPE_INT,
426 .default_val = {.i64 = 2},
427 .min = 0,
428 .max = UINT16_MAX,
430 },
431 {
432 .name = "version_minor",
433 .help = "override file minor version",
434 .offset = offsetof(ArgoASFMuxContext, version_minor),
435 .type = AV_OPT_TYPE_INT,
436 .default_val = {.i64 = 1},
437 .min = 0,
438 .max = UINT16_MAX,
440 },
441 {
442 .name = "name",
443 .help = "embedded file name (max 8 characters)",
444 .offset = offsetof(ArgoASFMuxContext, name),
445 .type = AV_OPT_TYPE_STRING,
446 .default_val = {.str = NULL},
448 },
449 { NULL }
450};
451
452static const AVClass argo_asf_muxer_class = {
453 .class_name = "argo_asf_muxer",
454 .item_name = av_default_item_name,
455 .option = argo_asf_options,
456 .version = LIBAVUTIL_VERSION_INT
457};
458
460 .p.name = "argo_asf",
461 .p.long_name = NULL_IF_CONFIG_SMALL("Argonaut Games ASF"),
462 /*
463 * NB: Can't do this as it conflicts with the actual ASF format.
464 * .p.extensions = "asf",
465 */
466 .p.audio_codec = AV_CODEC_ID_ADPCM_ARGO,
467 .p.video_codec = AV_CODEC_ID_NONE,
468 .p.subtitle_codec = AV_CODEC_ID_NONE,
469 .p.priv_class = &argo_asf_muxer_class,
470 .flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH |
472 .init = argo_asf_write_init,
473 .write_header = argo_asf_write_header,
474 .write_packet = argo_asf_write_packet,
475 .write_trailer = argo_asf_write_trailer,
476 .priv_data_size = sizeof(ArgoASFMuxContext)
477};
478#endif
const FFInputFormat ff_argo_asf_demuxer
const FFOutputFormat ff_argo_asf_muxer
int ff_argo_asf_validate_file_header(AVFormatContext *s, const ArgoASFFileHeader *hdr)
Definition argo_asf.c:65
void ff_argo_asf_parse_file_header(ArgoASFFileHeader *hdr, const uint8_t *buf)
Definition argo_asf.c:54
#define ASF_NB_BLOCKS
Definition argo_asf.c:38
int ff_argo_asf_fill_stream(AVFormatContext *s, AVStream *st, const ArgoASFFileHeader *fhdr, const ArgoASFChunkHeader *ckhdr)
Definition argo_asf.c:86
void ff_argo_asf_parse_chunk_header(ArgoASFChunkHeader *hdr, const uint8_t *buf)
Definition argo_asf.c:76
@ ASF_CF_ALWAYS0
Definition argo_asf.h:63
@ ASF_CF_STEREO
Definition argo_asf.h:58
@ ASF_CF_BITS_PER_SAMPLE
Definition argo_asf.h:57
@ ASF_CF_ALWAYS1
Definition argo_asf.h:62
#define ASF_NAME_SIZE
Definition argo_asf.h:36
#define ASF_SAMPLE_COUNT
Definition argo_asf.h:34
#define ASF_CHUNK_HEADER_SIZE
Definition argo_asf.h:33
#define ASF_TAG
Definition argo_asf.h:31
#define ASF_FILE_HEADER_SIZE
Definition argo_asf.h:32
#define ASF_MIN_BUFFER_SIZE
Definition argo_asf.h:35
simple assert() macros that are a bit more flexible than ISO C assert().
#define av_assert0(cond)
assert() equivalent, that is always enabled.
Definition avassert.h:42
void avpriv_set_pts_info(AVStream *st, int pts_wrap_bits, unsigned int pts_num, unsigned int pts_den)
Set the time base and wrapping info for a given stream.
Definition avformat.c:834
Main libavformat public API header.
#define AVPROBE_PADDING_SIZE
extra allocated bytes at the end of the probe buffer
Definition avformat.h:485
#define AVPROBE_SCORE_EXTENSION
score for file extension
Definition avformat.h:481
int av_get_packet(AVIOContext *s, AVPacket *pkt, int size)
Allocate and read the payload of a packet and initialize its fields with default values.
Definition utils.c:98
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
Definition aviobuf.c:236
#define AVIO_SEEKABLE_NORMAL
Seeking works like for a local file.
Definition avio.h:41
void avio_wl32(AVIOContext *s, unsigned int val)
Definition aviobuf.c:360
void avio_wl16(AVIOContext *s, unsigned int val)
Definition aviobuf.c:440
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
Definition aviobuf.c:321
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
Definition aviobuf.c:206
int ffio_read_size(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
Definition aviobuf.c:665
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
#define flags(name, subs,...)
Definition cbs_h264.c:74
#define s(width, name)
Definition cbs_vp9.c:198
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
Public libavutil channel layout APIs header.
#define NULL
Definition coverity.c:32
long long int64_t
Definition coverity.c:34
static int16_t block[64]
Definition dct.c:125
static AVPacket * pkt
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
#define AV_OPT_FLAG_ENCODING_PARAM
A generic parameter which can be set by the user for muxing or encoding.
Definition opt.h:351
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...
Definition opt.h:275
@ AV_CODEC_ID_NONE
Definition codec_id.h:48
@ AV_CODEC_ID_ADPCM_ARGO
Definition codec_id.h:412
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
Definition packet.h:651
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
#define AV_CHANNEL_LAYOUT_STEREO
#define AV_CHANNEL_LAYOUT_MONO
AVDictionaryEntry * av_dict_get(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
Definition dict.c:60
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
Definition dict.c:86
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
Definition error.h:64
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Definition error.h:61
#define AVERROR_EOF
End of file.
Definition error.h:57
#define AVERROR(e)
Definition error.h:45
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition log.h:210
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201
@ AV_SAMPLE_FMT_S16P
signed 16 bits, planar
Definition samplefmt.h:64
const char * av_basename(const char *path)
Thread safe basename.
Definition avstring.c:253
#define LIBAVUTIL_VERSION_INT
Definition version.h:85
#define AV_RL32(p)
#define AV_RL16(p)
unsigned offset
Definition libaomenc.c:763
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
Definition libcdio.c:151
#define FFMIN(a, b)
Definition macros.h:49
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
Definition mux.h:50
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
Definition mux.h:59
IDirect3DDxgiInterfaceAccess _COM_Outptr_ void ** p
AVOptions.
const char * name
Definition qsvenc.c:142
An AVChannelLayout holds information about the channel layout of audio data.
int nb_channels
Number of channels in this layout.
Describe the class of an AVClass context structure.
Definition log.h:76
This struct describes the properties of an encoded stream.
Definition codec_par.h:49
int bits_per_coded_sample
The number of bits per sample in the codedwords.
Definition codec_par.h:113
AVChannelLayout ch_layout
The channel layout and number of channels.
Definition codec_par.h:207
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
Definition codec_par.h:99
enum AVMediaType codec_type
General type of the encoded data.
Definition codec_par.h:53
int block_align
The number of bytes per coded audio frame, required by some formats.
Definition codec_par.h:221
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
Definition codec_par.h:57
int sample_rate
The number of audio samples per second.
Definition codec_par.h:213
char * value
Definition dict.h:92
Format I/O context.
Definition avformat.h:1333
Bytestream IO Context.
Definition avio.h:160
AVOption.
Definition opt.h:428
This structure stores compressed data.
Definition packet.h:580
This structure contains the data a format has to probe a file.
Definition avformat.h:471
Stream structure.
Definition avformat.h:766
AVCodecParameters * codecpar
Codec parameters associated with this stream.
Definition avformat.h:789
int64_t nb_frames
number of frames in this stream if known or 0
Definition avformat.h:827
int64_t duration
Decoding: duration of the stream, in stream time base.
Definition avformat.h:825
int index
stream index in AVFormatContext
Definition avformat.h:772
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base.
Definition avformat.h:815
uint32_t num_blocks
Definition argo_asf.h:48
uint16_t sample_rate
Definition argo_asf.h:51
uint32_t num_samples
Definition argo_asf.h:49
uint32_t blocks_read
Definition argo_asf.c:43
ArgoASFChunkHeader ckhdr
Definition argo_asf.c:42
ArgoASFFileHeader fhdr
Definition argo_asf.c:41
uint32_t magic
Definition argo_asf.h:39
uint32_t num_chunks
Definition argo_asf.h:42
char name[ASF_NAME_SIZE+1]
Definition argo_asf.h:44
uint16_t version_minor
Definition argo_asf.h:41
uint32_t chunk_offset
Definition argo_asf.h:43
uint16_t version_major
Definition argo_asf.h:40
const char * name
Definition argo_asf.c:50
int64_t nb_blocks
Definition argo_asf.c:51
#define avpriv_request_sample(...)
#define av_log(a,...)
static AVFormatContext * ctx
Definition movenc.c:49
static int64_t pts
int len