]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/serdec.c
avcodec/avcodec: Use avcodec_close() on avcodec_open2() failure
[ffmpeg] / libavformat / serdec.c
index 25e6f635af691a6bb7be418356fdcc8925864351..fa2de32fd54797ed569da7fd3f49be002146f32a 100644 (file)
@@ -35,7 +35,7 @@ typedef struct SERDemuxerContext {
     int64_t end;
 } SERDemuxerContext;
 
-static int ser_probe(AVProbeData *pd)
+static int ser_probe(const AVProbeData *pd)
 {
     if (memcmp(pd->buf, SER_MAGIC, 14) == 0)
         return AVPROBE_SCORE_MAX;
@@ -132,7 +132,7 @@ static const AVClass ser_demuxer_class = {
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
-AVInputFormat ff_ser_demuxer = {
+const AVInputFormat ff_ser_demuxer = {
     .name           = "ser",
     .long_name      = NULL_IF_CONFIG_SMALL("SER (Simple uncompressed video format for astronomical capturing)"),
     .priv_data_size = sizeof(SERDemuxerContext),