X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fg722.c;h=fe8c4ae7bb0cfae92e4f97f570c6e1dcbfc9d418;hb=8b3e6ce5f4ab1ebf3a54ff7e0ff440a1a5f842f7;hp=2feec01211e39930510639f29f272c51c3efc54c;hpb=5ab44ff20cdc0e05adecbd0cd352d25fcb930094;p=ffmpeg diff --git a/libavformat/g722.c b/libavformat/g722.c index 2feec01211e..fe8c4ae7bb0 100644 --- a/libavformat/g722.c +++ b/libavformat/g722.c @@ -46,6 +46,7 @@ static int g722_read_header(AVFormatContext *s) return 0; } +FF_RAW_DEMUXER_CLASS(g722) AVInputFormat ff_g722_demuxer = { .name = "g722", .long_name = NULL_IF_CONFIG_SMALL("raw G.722"), @@ -54,4 +55,5 @@ AVInputFormat ff_g722_demuxer = { .flags = AVFMT_GENERIC_INDEX, .extensions = "g722,722", .raw_codec_id = AV_CODEC_ID_ADPCM_G722, -}; + .priv_data_size = sizeof(FFRawDemuxerContext), + .priv_class = &g722_demuxer_class,};