X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtp_vorbis.c;h=4f6286399e5c04c09aef30396f12906933a3a700;hb=5af41508310b856b1e5ca605e50e956bf81eeef9;hp=d9bdf4909d03233e39d6f9328f9e303a9c5b022c;hpb=e6327fba9859eac1e87d02d91a6834090c16eb3b;p=ffmpeg diff --git a/libavformat/rtp_vorbis.c b/libavformat/rtp_vorbis.c index d9bdf4909d0..4f6286399e5 100644 --- a/libavformat/rtp_vorbis.c +++ b/libavformat/rtp_vorbis.c @@ -143,12 +143,12 @@ ff_vorbis_parse_fmtp_config(AVCodecContext * codec, return result; } -static PayloadContext *vorbis_new_extradata(void) +static PayloadContext *vorbis_new_context(void) { return av_mallocz(sizeof(PayloadContext)); } -static void vorbis_free_extradata(PayloadContext * data) +static void vorbis_free_context(PayloadContext * data) { av_free(data); } @@ -208,11 +208,11 @@ vorbis_handle_packet(AVFormatContext * ctx, } RTPDynamicProtocolHandler ff_vorbis_dynamic_handler = { - "vorbis", - CODEC_TYPE_AUDIO, - CODEC_ID_VORBIS, - NULL, - vorbis_new_extradata, - vorbis_free_extradata, - vorbis_handle_packet + .enc_name = "vorbis", + .codec_type = CODEC_TYPE_AUDIO, + .codec_id = CODEC_ID_VORBIS, + .parse_sdp_a_line = NULL, + .open = vorbis_new_context, + .close = vorbis_free_context, + .parse_packet = vorbis_handle_packet };