OSDN Git Service

rtpdec: Change the qdm2, qt and svq3 depacketizers to use designated initializers
authorMartin Storsjö <martin@martin.st>
Mon, 29 Nov 2010 16:04:04 +0000 (16:04 +0000)
committerMartin Storsjö <martin@martin.st>
Mon, 29 Nov 2010 16:04:04 +0000 (16:04 +0000)
Originally committed as revision 25843 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtpdec_qdm2.c
libavformat/rtpdec_qt.c
libavformat/rtpdec_svq3.c

index bd56942..3749980 100644 (file)
@@ -306,11 +306,11 @@ static void qdm2_extradata_free(PayloadContext *qdm)
 }
 
 RTPDynamicProtocolHandler ff_qdm2_dynamic_handler = {
-    "X-QDM",
-    AVMEDIA_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,
+    .parse_sdp_a_line = NULL,
+    .open             = qdm2_extradata_new,
+    .close            = qdm2_extradata_free,
+    .parse_packet     = qdm2_parse_packet,
 };
index 7dfc71f..4d8437e 100644 (file)
@@ -240,13 +240,13 @@ static void qt_rtp_free(PayloadContext *qt)
 
 #define RTP_QT_HANDLER(m, n, s, t) \
 RTPDynamicProtocolHandler ff_ ## m ## _rtp_ ## n ## _handler = { \
-    s, \
-    t, \
-    CODEC_ID_NONE, \
-    NULL,          \
-    qt_rtp_new,    \
-    qt_rtp_free,   \
-    qt_rtp_parse_packet, \
+    .enc_name         = s, \
+    .codec_type       = t, \
+    .codec_id         = CODEC_ID_NONE, \
+    .parse_sdp_a_line = NULL,          \
+    .open             = qt_rtp_new,    \
+    .close            = qt_rtp_free,   \
+    .parse_packet     = qt_rtp_parse_packet, \
 };
 
 RTP_QT_HANDLER(qt,        vid, "X-QT",        CODEC_TYPE_VIDEO);
index 06a1ddb..9ce1403 100644 (file)
@@ -125,11 +125,11 @@ static void svq3_extradata_free(PayloadContext *sv)
 }
 
 RTPDynamicProtocolHandler ff_svq3_dynamic_handler = {
-    "X-SV3V-ES",
-    AVMEDIA_TYPE_VIDEO,
-    CODEC_ID_NONE,          // see if (config_packet) above
-    NULL,                   // parse sdp line
-    svq3_extradata_new,
-    svq3_extradata_free,
-    svq3_parse_packet,
+    .enc_name         = "X-SV3V-ES",
+    .codec_type       = AVMEDIA_TYPE_VIDEO,
+    .codec_id         = CODEC_ID_NONE,      // see if (config_packet) above
+    .parse_sdp_a_line = NULL,               // parse sdp line
+    .open             = svq3_extradata_new,
+    .close            = svq3_extradata_free,
+    .parse_packet     = svq3_parse_packet,
 };