/**
* 8088flex TMV file demuxer
- * @file libavformat/tmv.c
+ * @file
* @author Daniel Verkamp
* @sa http://www.oldskool.org/pc/8088_Corruption
*/
return -1;
}
- ast->codec->codec_type = CODEC_TYPE_AUDIO;
+ ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
ast->codec->codec_id = CODEC_ID_PCM_U8;
- ast->codec->sample_fmt = SAMPLE_FMT_U8;
ast->codec->channels = features & TMV_STEREO ? 2 : 1;
ast->codec->bits_per_coded_sample = 8;
ast->codec->bit_rate = ast->codec->sample_rate *
fps.den = tmv->audio_chunk_size;
av_reduce(&fps.num, &fps.den, fps.num, fps.den, 0xFFFFFFFFLL);
- vst->codec->codec_type = CODEC_TYPE_VIDEO;
+ vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
vst->codec->codec_id = CODEC_ID_TMV;
vst->codec->pix_fmt = PIX_FMT_PAL8;
vst->codec->width = char_cols * 8;
pkt->stream_index = tmv->stream_index;
tmv->stream_index ^= 1;
- pkt->flags |= PKT_FLAG_KEY;
+ pkt->flags |= AV_PKT_FLAG_KEY;
return ret;
}
return 0;
}
-AVInputFormat tmv_demuxer = {
+AVInputFormat ff_tmv_demuxer = {
"tmv",
NULL_IF_CONFIG_SMALL("8088flex TMV"),
sizeof(TMVContext),