]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/anm.c
avcodec/avcodec: Use avcodec_close() on avcodec_open2() failure
[ffmpeg] / libavformat / anm.c
index a5ad2fd0ef25022dc1f94b45b341a8d472bcef6f..1c29bbca2902dec9d52941d8c9ad0878ed7eb4ca 100644 (file)
@@ -47,7 +47,7 @@ typedef struct AnmDemuxContext {
 #define LPF_TAG  MKTAG('L','P','F',' ')
 #define ANIM_TAG MKTAG('A','N','I','M')
 
-static int probe(AVProbeData *p)
+static int probe(const AVProbeData *p)
 {
     /* verify tags and video dimensions */
     if (AV_RL32(&p->buf[0])  == LPF_TAG &&
@@ -214,7 +214,7 @@ repeat:
     return 0;
 }
 
-AVInputFormat ff_anm_demuxer = {
+const AVInputFormat ff_anm_demuxer = {
     .name           = "anm",
     .long_name      = NULL_IF_CONFIG_SMALL("Deluxe Paint Animation"),
     .priv_data_size = sizeof(AnmDemuxContext),