]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpdec_qdm2.c
movenc: remove uses of deprecated API.
[ffmpeg] / libavformat / rtpdec_qdm2.c
index 9c6b3efc92185854e004b1c8a510e0f4b379a895..aa94b1f760014d101bc9b58ff739b06205e6a638 100644 (file)
@@ -30,7 +30,7 @@
 #include "libavcodec/avcodec.h"
 #include "rtp.h"
 #include "rtpdec.h"
-#include "rtpdec_qdm2.h"
+#include "rtpdec_formats.h"
 
 struct PayloadContext {
     /** values read from the config header, used as packet headers */
@@ -306,11 +306,10 @@ static void qdm2_extradata_free(PayloadContext *qdm)
 }
 
 RTPDynamicProtocolHandler ff_qdm2_dynamic_handler = {
-    "X-QDM",
-    CODEC_TYPE_AUDIO,
-    CODEC_ID_NONE,
-    NULL,
-    qdm2_extradata_new,
-    qdm2_extradata_free,
-    qdm2_parse_packet,
+    .enc_name         = "X-QDM",
+    .codec_type       = AVMEDIA_TYPE_AUDIO,
+    .codec_id         = CODEC_ID_NONE,
+    .open             = qdm2_extradata_new,
+    .close            = qdm2_extradata_free,
+    .parse_packet     = qdm2_parse_packet,
 };