X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fsbcdec.c;h=4de29b37c5daef72cb9a5417b45ee7cd290ec5ed;hb=f4df5039a791a56de85c64e6b9e4448a221b5c40;hp=ae74a220dc81a10a35e49f8883f10942543930be;hpb=5c1aafff2d844b177b0b20db4a38d8460992558b;p=ffmpeg diff --git a/libavformat/sbcdec.c b/libavformat/sbcdec.c index ae74a220dc8..4de29b37c5d 100644 --- a/libavformat/sbcdec.c +++ b/libavformat/sbcdec.c @@ -22,7 +22,8 @@ #include "avformat.h" #include "rawdec.h" -AVInputFormat ff_sbc_demuxer = { +FF_RAW_DEMUXER_CLASS(sbc) +const AVInputFormat ff_sbc_demuxer = { .name = "sbc", .long_name = NULL_IF_CONFIG_SMALL("raw SBC (low-complexity subband codec)"), .extensions = "sbc,msbc", @@ -30,4 +31,6 @@ AVInputFormat ff_sbc_demuxer = { .read_header = ff_raw_audio_read_header, .read_packet = ff_raw_read_partial_packet, .flags = AVFMT_GENERIC_INDEX, + .priv_data_size = sizeof(FFRawDemuxerContext), + .priv_class = &sbc_demuxer_class, };