X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fthp.c;h=17054df78c8a30314768836714fef222f8ebf612;hb=07a70caba7cb2fac69bf9541914d4bffce61d1ea;hp=2d1f74e38b4a3ae02fb4410b773c39c450d8a028;hpb=3074f03a074de3aab79639d261cbd0ccc265b5b4;p=ffmpeg diff --git a/libavformat/thp.c b/libavformat/thp.c index 2d1f74e38b4..17054df78c8 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -20,6 +20,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/intfloat_readwrite.h" #include "avformat.h" typedef struct ThpDemuxContext { @@ -188,10 +189,10 @@ static int thp_read_packet(AVFormatContext *s, } AVInputFormat ff_thp_demuxer = { - "thp", - NULL_IF_CONFIG_SMALL("THP"), - sizeof(ThpDemuxContext), - thp_probe, - thp_read_header, - thp_read_packet + .name = "thp", + .long_name = NULL_IF_CONFIG_SMALL("THP"), + .priv_data_size = sizeof(ThpDemuxContext), + .read_probe = thp_probe, + .read_header = thp_read_header, + .read_packet = thp_read_packet };