*/
/**
- * @file libavformat/anm.c
+ * @file
* Deluxe Paint Animation demuxer
*/
} Page;
typedef struct {
- unsigned int nb_pages; /** total pages in file */
- unsigned int nb_records; /** total records in file */
+ unsigned int nb_pages; /**< total pages in file */
+ unsigned int nb_records; /**< total records in file */
int page_table_offset;
-#define MAX_PAGES 256 /** Deluxe Paint hardcoded value */
- Page pt[MAX_PAGES]; /** page table */
- int page; /** current page (or AVERROR_xxx code) */
- int record; /** current record (with in page) */
+#define MAX_PAGES 256 /**< Deluxe Paint hardcoded value */
+ Page pt[MAX_PAGES]; /**< page table */
+ int page; /**< current page (or AVERROR_xxx code) */
+ int record; /**< current record (with in page) */
} AnmDemuxContext;
#define LPF_TAG MKTAG('L','P','F',' ')
st = av_new_stream(s, 0);
if (!st)
return AVERROR(ENOMEM);
- st->codec->codec_type = CODEC_TYPE_VIDEO;
+ st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
st->codec->codec_id = CODEC_ID_ANM;
st->codec->codec_tag = 0; /* no fourcc */
st->codec->width = get_le16(pb);
if (pkt->size < 0)
return pkt->size;
if (p->base_record + anm->record == 0)
- pkt->flags |= PKT_FLAG_KEY;
+ pkt->flags |= AV_PKT_FLAG_KEY;
anm->record++;
return 0;