]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/argo_brp.c
avformat: Constify all muxer/demuxers
[ffmpeg] / libavformat / argo_brp.c
index 766d4fd2617964bcc79cba19addab8dde98a8cd1..059418cd1d5ce6b74ab2e4988090ab91535a90c1 100644 (file)
@@ -392,9 +392,6 @@ static int argo_brp_read_packet(AVFormatContext *s, AVPacket *pkt)
             return AVERROR_INVALIDDATA;
 
         blk.size -= ASF_CHUNK_HEADER_SIZE;
-
-        if (blk.size % st->codecpar->block_align != 0)
-            return AVERROR_INVALIDDATA;
     }
 
     if ((ret = av_get_packet(s->pb, pkt, blk.size)) < 0)
@@ -416,7 +413,7 @@ static int argo_brp_read_packet(AVFormatContext *s, AVPacket *pkt)
     return 0;
 }
 
-AVInputFormat ff_argo_brp_demuxer = {
+const AVInputFormat ff_argo_brp_demuxer = {
     .name           = "argo_brp",
     .long_name      = NULL_IF_CONFIG_SMALL("Argonaut Games BRP"),
     .priv_data_size = sizeof(ArgoBRPDemuxContext),