FFmpeg coverage


Directory: ../../../ffmpeg/
File: src/libavformat/argo_asf.c
Date: 2022-12-06 04:36:11
Exec Total Coverage
Lines: 151 206 73.3%
Functions: 14 15 93.3%
Branches: 49 100 49.0%

Line Branch Exec Source
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 "internal.h"
28 #include "libavutil/channel_layout.h"
29 #include "libavutil/intreadwrite.h"
30 #include "libavutil/avassert.h"
31 #include "libavutil/opt.h"
32 #include "argo_asf.h"
33
34 /* Maximum number of blocks to read at once. */
35 #define ASF_NB_BLOCKS 32
36
37 typedef struct ArgoASFDemuxContext {
38 ArgoASFFileHeader fhdr;
39 ArgoASFChunkHeader ckhdr;
40 uint32_t blocks_read;
41 } ArgoASFDemuxContext;
42
43 typedef struct ArgoASFMuxContext {
44 const AVClass *class;
45 int version_major;
46 int version_minor;
47 const char *name;
48 int64_t nb_blocks;
49 } ArgoASFMuxContext;
50
51 6785 void ff_argo_asf_parse_file_header(ArgoASFFileHeader *hdr, const uint8_t *buf)
52 {
53 6785 hdr->magic = AV_RL32(buf + 0);
54 6785 hdr->version_major = AV_RL16(buf + 4);
55 6785 hdr->version_minor = AV_RL16(buf + 6);
56 6785 hdr->num_chunks = AV_RL32(buf + 8);
57 6785 hdr->chunk_offset = AV_RL32(buf + 12);
58 6785 memcpy(hdr->name, buf + 16, ASF_NAME_SIZE);
59 6785 hdr->name[ASF_NAME_SIZE] = '\0';
60 6785 }
61
62 3 int ff_argo_asf_validate_file_header(AVFormatContext *s, const ArgoASFFileHeader *hdr)
63 {
64
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
3 if (hdr->magic != ASF_TAG || hdr->num_chunks == 0)
65 return AVERROR_INVALIDDATA;
66
67
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 if (hdr->chunk_offset < ASF_FILE_HEADER_SIZE)
68 return AVERROR_INVALIDDATA;
69
70 3 return 0;
71 }
72
73 3 void ff_argo_asf_parse_chunk_header(ArgoASFChunkHeader *hdr, const uint8_t *buf)
74 {
75 3 hdr->num_blocks = AV_RL32(buf + 0);
76 3 hdr->num_samples = AV_RL32(buf + 4);
77 3 hdr->unk1 = AV_RL32(buf + 8);
78 3 hdr->sample_rate = AV_RL16(buf + 12);
79 3 hdr->unk2 = AV_RL16(buf + 14);
80 3 hdr->flags = AV_RL32(buf + 16);
81 3 }
82
83 3 int ff_argo_asf_fill_stream(AVFormatContext *s, AVStream *st, const ArgoASFFileHeader *fhdr,
84 const ArgoASFChunkHeader *ckhdr)
85 {
86
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 if (ckhdr->num_samples != ASF_SAMPLE_COUNT) {
87 av_log(s, AV_LOG_ERROR, "Invalid sample count. Got %u, expected %d\n",
88 ckhdr->num_samples, ASF_SAMPLE_COUNT);
89 return AVERROR_INVALIDDATA;
90 }
91
92
2/4
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
3 if ((ckhdr->flags & ASF_CF_ALWAYS1) != ASF_CF_ALWAYS1 || (ckhdr->flags & ASF_CF_ALWAYS0) != 0) {
93 avpriv_request_sample(s, "Nonstandard flags (0x%08X)", ckhdr->flags);
94 return AVERROR_PATCHWELCOME;
95 }
96
97 3 st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
98 3 st->codecpar->codec_id = AV_CODEC_ID_ADPCM_ARGO;
99 3 st->codecpar->format = AV_SAMPLE_FMT_S16P;
100
101
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 1 times.
3 if (ckhdr->flags & ASF_CF_STEREO) {
102 2 st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO;
103 } else {
104 1 st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
105 }
106
107 /* v1.1 files (FX Fighter) are all marked as 44100, but are actually 22050. */
108
3/4
✓ Branch 0 taken 1 times.
✓ Branch 1 taken 2 times.
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
3 if (fhdr->version_major == 1 && fhdr->version_minor == 1)
109 1 st->codecpar->sample_rate = 22050;
110 else
111 2 st->codecpar->sample_rate = ckhdr->sample_rate;
112
113 3 st->codecpar->bits_per_coded_sample = 4;
114
115
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 if (!(ckhdr->flags & ASF_CF_BITS_PER_SAMPLE)) {
116 /* The header allows for these, but I've never seen any files with them. */
117 avpriv_request_sample(s, "Non 16-bit samples");
118 return AVERROR_PATCHWELCOME;
119 }
120
121 /*
122 * (nchannel control bytes) + ((bytes_per_channel) * nchannel)
123 * For mono, this is 17. For stereo, this is 34.
124 */
125 3 st->codecpar->block_align = st->codecpar->ch_layout.nb_channels +
126 3 (ckhdr->num_samples / 2) *
127 st->codecpar->ch_layout.nb_channels;
128
129 3 st->codecpar->bit_rate = st->codecpar->ch_layout.nb_channels *
130 3 st->codecpar->sample_rate *
131 3 st->codecpar->bits_per_coded_sample;
132
133 3 avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
134 3 st->start_time = 0;
135
136
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 if (fhdr->num_chunks == 1) {
137 3 st->duration = ckhdr->num_blocks * ckhdr->num_samples;
138 3 st->nb_frames = ckhdr->num_blocks;
139 }
140
141 3 return 0;
142 }
143
144 #if CONFIG_ARGO_ASF_DEMUXER
145 /*
146 * Known versions:
147 * 1.1: https://samples.ffmpeg.org/game-formats/brender/part2.zip
148 * FX Fighter
149 * 1.2: Croc! Legend of the Gobbos
150 * 2.1: Croc 2
151 * The Emperor's New Groove
152 * Disney's Aladdin in Nasira's Revenge
153 */
154 3 static int argo_asf_is_known_version(const ArgoASFFileHeader *hdr)
155 {
156
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
1 return (hdr->version_major == 1 && hdr->version_minor == 1) ||
157
3/6
✓ Branch 0 taken 1 times.
✓ Branch 1 taken 2 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
6 (hdr->version_major == 1 && hdr->version_minor == 2) ||
158
2/4
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
2 (hdr->version_major == 2 && hdr->version_minor == 1);
159 }
160
161 6782 static int argo_asf_probe(const AVProbeData *p)
162 {
163 ArgoASFFileHeader hdr;
164
165 av_assert0(AVPROBE_PADDING_SIZE >= ASF_FILE_HEADER_SIZE);
166
167 6782 ff_argo_asf_parse_file_header(&hdr, p->buf);
168
169
2/2
✓ Branch 0 taken 6779 times.
✓ Branch 1 taken 3 times.
6782 if (hdr.magic != ASF_TAG)
170 6779 return 0;
171
172
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (!argo_asf_is_known_version(&hdr))
173 return AVPROBE_SCORE_EXTENSION / 2;
174
175 3 return AVPROBE_SCORE_EXTENSION + 1;
176 }
177
178 3 static int argo_asf_read_header(AVFormatContext *s)
179 {
180 int64_t ret;
181 3 AVIOContext *pb = s->pb;
182 AVStream *st;
183 3 ArgoASFDemuxContext *asf = s->priv_data;
184 uint8_t buf[ASF_MIN_BUFFER_SIZE];
185
186
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (!(st = avformat_new_stream(s, NULL)))
187 return AVERROR(ENOMEM);
188
189
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if ((ret = avio_read(pb, buf, ASF_FILE_HEADER_SIZE)) < 0)
190 return ret;
191
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 else if (ret != ASF_FILE_HEADER_SIZE)
192 return AVERROR(EIO);
193
194 3 ff_argo_asf_parse_file_header(&asf->fhdr, buf);
195
196
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if ((ret = ff_argo_asf_validate_file_header(s, &asf->fhdr)) < 0)
197 return ret;
198
199 /* This should only be 1 in ASF files. >1 is fine if in BRP. */
200
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 if (asf->fhdr.num_chunks != 1)
201 return AVERROR_INVALIDDATA;
202
203
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if ((ret = avio_skip(pb, asf->fhdr.chunk_offset - ASF_FILE_HEADER_SIZE)) < 0)
204 return ret;
205
206
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if ((ret = avio_read(pb, buf, ASF_CHUNK_HEADER_SIZE)) < 0)
207 return ret;
208
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 else if (ret != ASF_CHUNK_HEADER_SIZE)
209 return AVERROR(EIO);
210
211 3 ff_argo_asf_parse_chunk_header(&asf->ckhdr, buf);
212
213 3 av_dict_set(&s->metadata, "title", asf->fhdr.name, 0);
214
215 3 return ff_argo_asf_fill_stream(s, st, &asf->fhdr, &asf->ckhdr);
216 }
217
218 949 static int argo_asf_read_packet(AVFormatContext *s, AVPacket *pkt)
219 {
220 949 ArgoASFDemuxContext *asf = s->priv_data;
221
222 949 AVStream *st = s->streams[0];
223 949 AVIOContext *pb = s->pb;
224 int ret;
225
226
2/2
✓ Branch 0 taken 3 times.
✓ Branch 1 taken 946 times.
949 if (asf->blocks_read >= asf->ckhdr.num_blocks)
227 3 return AVERROR_EOF;
228
229 946 ret = av_get_packet(pb, pkt, st->codecpar->block_align *
230 946 FFMIN(ASF_NB_BLOCKS, asf->ckhdr.num_blocks - asf->blocks_read));
231
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 946 times.
946 if (ret < 0)
232 return ret;
233
234 /* Something real screwy is going on. */
235
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 946 times.
946 if (ret % st->codecpar->block_align != 0)
236 return AVERROR_INVALIDDATA;
237
238
239 946 pkt->stream_index = st->index;
240 946 pkt->duration = asf->ckhdr.num_samples * (ret / st->codecpar->block_align);
241 946 pkt->pts = asf->blocks_read * asf->ckhdr.num_samples;
242 946 asf->blocks_read += (ret / st->codecpar->block_align);
243
244 946 pkt->flags &= ~AV_PKT_FLAG_CORRUPT;
245 946 return 0;
246 }
247
248 static int argo_asf_seek(AVFormatContext *s, int stream_index,
249 int64_t pts, int flags)
250 {
251 ArgoASFDemuxContext *asf = s->priv_data;
252 AVStream *st = s->streams[stream_index];
253 int64_t offset;
254 uint32_t block = pts / asf->ckhdr.num_samples;
255
256 if (block >= asf->ckhdr.num_blocks)
257 return -1;
258
259 offset = asf->fhdr.chunk_offset + ASF_CHUNK_HEADER_SIZE +
260 (block * st->codecpar->block_align);
261
262 if ((offset = avio_seek(s->pb, offset, SEEK_SET)) < 0)
263 return offset;
264
265 asf->blocks_read = block;
266 return 0;
267 }
268
269 /*
270 * Not actually sure what ASF stands for.
271 * - Argonaut Sound File?
272 * - Audio Stream File?
273 */
274 const AVInputFormat ff_argo_asf_demuxer = {
275 .name = "argo_asf",
276 .long_name = NULL_IF_CONFIG_SMALL("Argonaut Games ASF"),
277 .priv_data_size = sizeof(ArgoASFDemuxContext),
278 .read_probe = argo_asf_probe,
279 .read_header = argo_asf_read_header,
280 .read_packet = argo_asf_read_packet,
281 .read_seek = argo_asf_seek,
282 };
283 #endif
284
285 #if CONFIG_ARGO_ASF_MUXER
286 1 static int argo_asf_write_init(AVFormatContext *s)
287 {
288 1 ArgoASFMuxContext *ctx = s->priv_data;
289 const AVCodecParameters *par;
290
291
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
1 if (s->nb_streams != 1) {
292 av_log(s, AV_LOG_ERROR, "ASF files have exactly one stream\n");
293 return AVERROR(EINVAL);
294 }
295
296 1 par = s->streams[0]->codecpar;
297
298
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
1 if (par->codec_id != AV_CODEC_ID_ADPCM_ARGO) {
299 av_log(s, AV_LOG_ERROR, "%s codec not supported\n",
300 avcodec_get_name(par->codec_id));
301 return AVERROR(EINVAL);
302 }
303
304
1/6
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
1 if (ctx->version_major == 1 && ctx->version_minor == 1 && par->sample_rate != 22050) {
305 av_log(s, AV_LOG_ERROR, "ASF v1.1 files only support a sample rate of 22050\n");
306 return AVERROR(EINVAL);
307 }
308
309
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
1 if (par->ch_layout.nb_channels > 2) {
310 av_log(s, AV_LOG_ERROR, "ASF files only support up to 2 channels\n");
311 return AVERROR(EINVAL);
312 }
313
314
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
1 if (par->block_align != 17 * par->ch_layout.nb_channels)
315 return AVERROR(EINVAL);
316
317
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
1 if (par->sample_rate > UINT16_MAX) {
318 av_log(s, AV_LOG_ERROR, "Sample rate too large\n");
319 return AVERROR(EINVAL);
320 }
321
322
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
1 if (!(s->pb->seekable & AVIO_SEEKABLE_NORMAL)) {
323 av_log(s, AV_LOG_ERROR, "Stream not seekable, unable to write output file\n");
324 return AVERROR(EINVAL);
325 }
326
327 1 return 0;
328 }
329
330 1 static void argo_asf_write_file_header(const ArgoASFFileHeader *fhdr, AVIOContext *pb)
331 {
332 1 avio_wl32( pb, fhdr->magic);
333 1 avio_wl16( pb, fhdr->version_major);
334 1 avio_wl16( pb, fhdr->version_minor);
335 1 avio_wl32( pb, fhdr->num_chunks);
336 1 avio_wl32( pb, fhdr->chunk_offset);
337 1 avio_write(pb, fhdr->name, ASF_NAME_SIZE);
338 1 }
339
340 1 static void argo_asf_write_chunk_header(const ArgoASFChunkHeader *ckhdr, AVIOContext *pb)
341 {
342 1 avio_wl32(pb, ckhdr->num_blocks);
343 1 avio_wl32(pb, ckhdr->num_samples);
344 1 avio_wl32(pb, ckhdr->unk1);
345 1 avio_wl16(pb, ckhdr->sample_rate);
346 1 avio_wl16(pb, ckhdr->unk2);
347 1 avio_wl32(pb, ckhdr->flags);
348 1 }
349
350 1 static int argo_asf_write_header(AVFormatContext *s)
351 {
352 1 const AVCodecParameters *par = s->streams[0]->codecpar;
353 1 ArgoASFMuxContext *ctx = s->priv_data;
354 ArgoASFChunkHeader chdr;
355 1 ArgoASFFileHeader fhdr = {
356 .magic = ASF_TAG,
357 1 .version_major = (uint16_t)ctx->version_major,
358 1 .version_minor = (uint16_t)ctx->version_minor,
359 .num_chunks = 1,
360 .chunk_offset = ASF_FILE_HEADER_SIZE
361 };
362 AVDictionaryEntry *t;
363 const char *name, *end;
364 size_t len;
365
366 /*
367 * If the user specified a name, use it as is. Otherwise,
368 * try to use metadata (if present), then fall back to the
369 * filename (minus extension).
370 */
371
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
1 if (ctx->name) {
372 name = ctx->name;
373 len = strlen(ctx->name);
374
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 1 times.
1 } else if ((t = av_dict_get(s->metadata, "title", NULL, 0))) {
375 name = t->value;
376 len = strlen(t->value);
377
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 1 times.
1 } else if (!(end = strrchr((name = av_basename(s->url)), '.'))) {
378 len = strlen(name);
379 } else {
380 1 len = end - name;
381 }
382 1 memcpy(fhdr.name, name, FFMIN(len, ASF_NAME_SIZE));
383
384 1 chdr.num_blocks = 0;
385 1 chdr.num_samples = ASF_SAMPLE_COUNT;
386 1 chdr.unk1 = 0;
387
388
1/4
✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
1 if (ctx->version_major == 1 && ctx->version_minor == 1)
389 chdr.sample_rate = 44100;
390 else
391 1 chdr.sample_rate = par->sample_rate;
392
393 1 chdr.unk2 = ~0;
394 1 chdr.flags = ASF_CF_BITS_PER_SAMPLE | ASF_CF_ALWAYS1;
395
396
1/2
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
1 if (par->ch_layout.nb_channels == 2)
397 1 chdr.flags |= ASF_CF_STEREO;
398
399 1 argo_asf_write_file_header(&fhdr, s->pb);
400 1 argo_asf_write_chunk_header(&chdr, s->pb);
401 1 return 0;
402 }
403
404 8269 static int argo_asf_write_packet(AVFormatContext *s, AVPacket *pkt)
405 {
406 8269 ArgoASFMuxContext *ctx = s->priv_data;
407 8269 AVCodecParameters *par = s->streams[0]->codecpar;
408 8269 int nb_blocks = pkt->size / par->block_align;
409
410
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8269 times.
8269 if (pkt->size % par->block_align != 0)
411 return AVERROR_INVALIDDATA;
412
413
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 8269 times.
8269 if (ctx->nb_blocks + nb_blocks > UINT32_MAX)
414 return AVERROR_INVALIDDATA;
415
416 8269 avio_write(s->pb, pkt->data, pkt->size);
417
418 8269 ctx->nb_blocks += nb_blocks;
419 8269 return 0;
420 }
421
422 1 static int argo_asf_write_trailer(AVFormatContext *s)
423 {
424 1 ArgoASFMuxContext *ctx = s->priv_data;
425 int64_t ret;
426
427
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 1 times.
1 if ((ret = avio_seek(s->pb, ASF_FILE_HEADER_SIZE, SEEK_SET)) < 0)
428 return ret;
429
430 1 avio_wl32(s->pb, (uint32_t)ctx->nb_blocks);
431 1 return 0;
432 }
433
434 static const AVOption argo_asf_options[] = {
435 {
436 .name = "version_major",
437 .help = "override file major version",
438 .offset = offsetof(ArgoASFMuxContext, version_major),
439 .type = AV_OPT_TYPE_INT,
440 .default_val = {.i64 = 2},
441 .min = 0,
442 .max = UINT16_MAX,
443 .flags = AV_OPT_FLAG_ENCODING_PARAM
444 },
445 {
446 .name = "version_minor",
447 .help = "override file minor version",
448 .offset = offsetof(ArgoASFMuxContext, version_minor),
449 .type = AV_OPT_TYPE_INT,
450 .default_val = {.i64 = 1},
451 .min = 0,
452 .max = UINT16_MAX,
453 .flags = AV_OPT_FLAG_ENCODING_PARAM
454 },
455 {
456 .name = "name",
457 .help = "embedded file name (max 8 characters)",
458 .offset = offsetof(ArgoASFMuxContext, name),
459 .type = AV_OPT_TYPE_STRING,
460 .default_val = {.str = NULL},
461 .flags = AV_OPT_FLAG_ENCODING_PARAM
462 },
463 { NULL }
464 };
465
466 static const AVClass argo_asf_muxer_class = {
467 .class_name = "argo_asf_muxer",
468 .item_name = av_default_item_name,
469 .option = argo_asf_options,
470 .version = LIBAVUTIL_VERSION_INT
471 };
472
473 const AVOutputFormat ff_argo_asf_muxer = {
474 .name = "argo_asf",
475 .long_name = NULL_IF_CONFIG_SMALL("Argonaut Games ASF"),
476 /*
477 * NB: Can't do this as it conflicts with the actual ASF format.
478 * .extensions = "asf",
479 */
480 .audio_codec = AV_CODEC_ID_ADPCM_ARGO,
481 .video_codec = AV_CODEC_ID_NONE,
482 .init = argo_asf_write_init,
483 .write_header = argo_asf_write_header,
484 .write_packet = argo_asf_write_packet,
485 .write_trailer = argo_asf_write_trailer,
486 .priv_class = &argo_asf_muxer_class,
487 .priv_data_size = sizeof(ArgoASFMuxContext)
488 };
489 #endif
490