]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpdec_qdm2.c
Merge commit '9c9b0218e85fcd969308632f75af48a4ce229541'
[ffmpeg] / libavformat / rtpdec_qdm2.c
index edd9490051f4c865cff13493419ed9ef293b0d65..22b419e7e0a634a991207a4e4f8de204a3e0e1a2 100644 (file)
@@ -298,21 +298,10 @@ static int qdm2_parse_packet(AVFormatContext *s, PayloadContext *qdm,
     return (qdm->cache > 0) ? 1 : 0;
 }
 
-static PayloadContext *qdm2_extradata_new(void)
-{
-    return av_mallocz(sizeof(PayloadContext));
-}
-
-static void qdm2_extradata_free(PayloadContext *qdm)
-{
-    av_free(qdm);
-}
-
 RTPDynamicProtocolHandler ff_qdm2_dynamic_handler = {
     .enc_name         = "X-QDM",
     .codec_type       = AVMEDIA_TYPE_AUDIO,
     .codec_id         = AV_CODEC_ID_NONE,
-    .alloc            = qdm2_extradata_new,
-    .free             = qdm2_extradata_free,
+    .priv_data_size   = sizeof(PayloadContext),
     .parse_packet     = qdm2_parse_packet,
 };