]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/iv8.c
avformat: Constify all muxer/demuxers
[ffmpeg] / libavformat / iv8.c
index 449a422347dc2c9d598cfafc59e8f4b0ba13a83d..7237e16172cc942168744ac1a1c8738e78ca069f 100644 (file)
@@ -92,7 +92,6 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
             ret = av_append_packet(s->pb, pkt, size);
             if (ret < 0) {
                 av_log(s, AV_LOG_ERROR, "failed to grow packet\n");
-                av_packet_unref(pkt);
                 return ret;
             }
         }
@@ -108,7 +107,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
     return 0;
 }
 
-AVInputFormat ff_iv8_demuxer = {
+const AVInputFormat ff_iv8_demuxer = {
     .name           = "iv8",
     .long_name      = NULL_IF_CONFIG_SMALL("IndigoVision 8000 video"),
     .read_probe     = probe,