X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fhcom.c;h=b7fb7314c884c5fd219e19225ce37a64fc2bdafa;hb=92769f260da8bf38956212cc6a26f98bcf80c6c7;hp=35515cc5b277e93609c90b23ecf881f7388bcb88;hpb=ac4b5d86222006fa71ffe5922e1a34f1422507d8;p=ffmpeg diff --git a/libavformat/hcom.c b/libavformat/hcom.c index 35515cc5b27..b7fb7314c88 100644 --- a/libavformat/hcom.c +++ b/libavformat/hcom.c @@ -25,7 +25,7 @@ #include "internal.h" #include "pcm.h" -static int hcom_probe(AVProbeData *p) +static int hcom_probe(const AVProbeData *p) { if (p->buf_size < 132) return 0; @@ -38,7 +38,7 @@ static int hcom_probe(AVProbeData *p) static int hcom_read_header(AVFormatContext *s) { AVStream *st; - unsigned data_size, rsrc_size, huffcount; + av_unused unsigned data_size, rsrc_size, huffcount; unsigned compresstype, divisor; unsigned dict_entries; int ret; @@ -82,7 +82,7 @@ static int hcom_read_header(AVFormatContext *s) return 0; } -AVInputFormat ff_hcom_demuxer = { +const AVInputFormat ff_hcom_demuxer = { .name = "hcom", .long_name = NULL_IF_CONFIG_SMALL("Macintosh HCOM"), .read_probe = hcom_probe,