#include "voc.h"
#include "libavutil/intreadwrite.h"
-typedef struct {
+typedef struct C93BlockRecord {
uint16_t index;
uint8_t length;
uint8_t frames;
} C93BlockRecord;
-typedef struct {
+typedef struct C93DemuxContext {
VocDecContext voc;
C93BlockRecord block_records[512];
return AVERROR(ENOMEM);
video->codec->codec_type = AVMEDIA_TYPE_VIDEO;
- video->codec->codec_id = CODEC_ID_C93;
+ video->codec->codec_id = AV_CODEC_ID_C93;
video->codec->width = 320;
video->codec->height = 192;
/* 4:3 320x200 with 8 empty lines */
return 0;
fail:
- av_free_packet(pkt);
+ av_packet_unref(pkt);
return ret;
}