[FFmpeg-cvslog] r25843 - in trunk/libavformat: rtpdec_qdm2.c rtpdec_qt.c rtpdec_svq3.c

mstorsjo subversion
Mon Nov 29 17:04:05 CET 2010


Author: mstorsjo
Date: Mon Nov 29 17:04:04 2010
New Revision: 25843

Log:
rtpdec: Change the qdm2, qt and svq3 depacketizers to use designated initializers

Modified:
   trunk/libavformat/rtpdec_qdm2.c
   trunk/libavformat/rtpdec_qt.c
   trunk/libavformat/rtpdec_svq3.c

Modified: trunk/libavformat/rtpdec_qdm2.c
==============================================================================
--- trunk/libavformat/rtpdec_qdm2.c	Mon Nov 29 11:35:57 2010	(r25842)
+++ trunk/libavformat/rtpdec_qdm2.c	Mon Nov 29 17:04:04 2010	(r25843)
@@ -306,11 +306,11 @@ static void qdm2_extradata_free(PayloadC
 }
 
 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,
 };

Modified: trunk/libavformat/rtpdec_qt.c
==============================================================================
--- trunk/libavformat/rtpdec_qt.c	Mon Nov 29 11:35:57 2010	(r25842)
+++ trunk/libavformat/rtpdec_qt.c	Mon Nov 29 17:04:04 2010	(r25843)
@@ -240,13 +240,13 @@ static void qt_rtp_free(PayloadContext *
 
 #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);

Modified: trunk/libavformat/rtpdec_svq3.c
==============================================================================
--- trunk/libavformat/rtpdec_svq3.c	Mon Nov 29 11:35:57 2010	(r25842)
+++ trunk/libavformat/rtpdec_svq3.c	Mon Nov 29 17:04:04 2010	(r25843)
@@ -125,11 +125,11 @@ static void svq3_extradata_free(PayloadC
 }
 
 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,
 };



More information about the ffmpeg-cvslog mailing list