summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-27 14:23:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-27 14:29:03 +0200
commite760424ddd202e01119592044394d505810ae00a (patch)
tree448d22660a84f4516c9e1a5caeb66f9005a25a7a /libavformat
parent00e1afd83f7585f4acb65911100d79e32c1f6fc4 (diff)
parent93e81ee81c33e74e6047053f6086d63d2f8293d4 (diff)
downloadffmpeg-e760424ddd202e01119592044394d505810ae00a.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: nutdec: const correctness for get_v_trace/get_s_trace function arguments truemotion2: Request samples for old TM2 headers rtpdec: Remove a useless ff_ prefix from a static symbol rtpdec: Support depacketizing speex rtpenc: Add support for packetizing speex Conflicts: libavformat/rtpdec.c libavformat/sdp.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/Makefile1
-rw-r--r--libavformat/nutdec.c8
-rw-r--r--libavformat/rtpdec.c12
-rw-r--r--libavformat/rtpdec_formats.h1
-rw-r--r--libavformat/rtpdec_speex.c39
-rw-r--r--libavformat/rtpenc.c2
-rw-r--r--libavformat/sdp.c2
-rw-r--r--libavformat/version.h2
8 files changed, 16 insertions, 51 deletions
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 01d750d4d3..92adfcdceb 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -300,7 +300,6 @@ OBJS-$(CONFIG_RTPDEC) += rdt.o \
rtpdec_qcelp.o \
rtpdec_qdm2.o \
rtpdec_qt.o \
- rtpdec_speex.o \
rtpdec_svq3.o \
rtpdec_vp8.o \
rtpdec_xiph.o
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 31c7189020..4179fbed2e 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -77,8 +77,8 @@ static uint64_t get_fourcc(AVIOContext *bc)
}
#ifdef TRACE
-static inline uint64_t get_v_trace(AVIOContext *bc, char *file,
- char *func, int line)
+static inline uint64_t get_v_trace(AVIOContext *bc, const char *file,
+ const char *func, int line)
{
uint64_t v = ffio_read_varlen(bc);
@@ -87,8 +87,8 @@ static inline uint64_t get_v_trace(AVIOContext *bc, char *file,
return v;
}
-static inline int64_t get_s_trace(AVIOContext *bc, char *file,
- char *func, int line)
+static inline int64_t get_s_trace(AVIOContext *bc, const char *file,
+ const char *func, int line)
{
int64_t v = get_s(bc);
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 67c273a7c1..e044435332 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -43,12 +43,18 @@
'ffio_open_dyn_packet_buf')
*/
-static RTPDynamicProtocolHandler ff_realmedia_mp3_dynamic_handler = {
+static RTPDynamicProtocolHandler realmedia_mp3_dynamic_handler = {
.enc_name = "X-MP3-draft-00",
.codec_type = AVMEDIA_TYPE_AUDIO,
.codec_id = AV_CODEC_ID_MP3ADU,
};
+static RTPDynamicProtocolHandler speex_dynamic_handler = {
+ .enc_name = "speex",
+ .codec_type = AVMEDIA_TYPE_AUDIO,
+ .codec_id = AV_CODEC_ID_SPEEX,
+};
+
/* statistics functions */
static RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler= NULL;
@@ -77,8 +83,8 @@ void av_register_rtp_dynamic_payload_handlers(void)
ff_register_dynamic_payload_handler(&ff_mp4a_latm_dynamic_handler);
ff_register_dynamic_payload_handler(&ff_vp8_dynamic_handler);
ff_register_dynamic_payload_handler(&ff_qcelp_dynamic_handler);
- ff_register_dynamic_payload_handler(&ff_realmedia_mp3_dynamic_handler);
- ff_register_dynamic_payload_handler(&ff_speex_dynamic_handler);
+ ff_register_dynamic_payload_handler(&realmedia_mp3_dynamic_handler);
+ ff_register_dynamic_payload_handler(&speex_dynamic_handler);
ff_register_dynamic_payload_handler(&ff_ms_rtp_asf_pfv_handler);
ff_register_dynamic_payload_handler(&ff_ms_rtp_asf_pfa_handler);
diff --git a/libavformat/rtpdec_formats.h b/libavformat/rtpdec_formats.h
index 9798c5d1d6..471888b703 100644
--- a/libavformat/rtpdec_formats.h
+++ b/libavformat/rtpdec_formats.h
@@ -58,7 +58,6 @@ extern RTPDynamicProtocolHandler ff_qt_rtp_aud_handler;
extern RTPDynamicProtocolHandler ff_qt_rtp_vid_handler;
extern RTPDynamicProtocolHandler ff_quicktime_rtp_aud_handler;
extern RTPDynamicProtocolHandler ff_quicktime_rtp_vid_handler;
-extern RTPDynamicProtocolHandler ff_speex_dynamic_handler;
extern RTPDynamicProtocolHandler ff_svq3_dynamic_handler;
extern RTPDynamicProtocolHandler ff_theora_dynamic_handler;
extern RTPDynamicProtocolHandler ff_vorbis_dynamic_handler;
diff --git a/libavformat/rtpdec_speex.c b/libavformat/rtpdec_speex.c
deleted file mode 100644
index 4e230906ee..0000000000
--- a/libavformat/rtpdec_speex.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * RTP SPEEX Depacketizer, RFC 5574
- * Copyright (c) 2012 Dmitry Samonenko
- *
- * This file is part of FFmpeg.
- *
- * FFmpeg is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * FFmpeg is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with FFmpeg; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include "avformat.h"
-#include "rtpdec_formats.h"
-#include "libavutil/avstring.h"
-
-static int speex_parse_sdp_line(AVFormatContext *s, int st_index,
- PayloadContext *data, const char *line)
-{
- av_log(s, AV_LOG_WARNING, "fmtp line parsing is not implemented yet\n");
-
- return 0;
-}
-
-RTPDynamicProtocolHandler ff_speex_dynamic_handler = {
- .enc_name = "speex",
- .codec_type = AVMEDIA_TYPE_AUDIO,
- .codec_id = AV_CODEC_ID_SPEEX,
- .parse_sdp_a_line = speex_parse_sdp_line,
-};
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index 653eded94c..ea678a6792 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -75,8 +75,8 @@ static int is_supported(enum AVCodecID id)
case AV_CODEC_ID_ADPCM_G722:
case AV_CODEC_ID_ADPCM_G726:
case AV_CODEC_ID_ILBC:
- case AV_CODEC_ID_SPEEX:
case AV_CODEC_ID_MJPEG:
+ case AV_CODEC_ID_SPEEX:
return 1;
default:
return 0;
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 96b6c44e05..30941b7f89 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -575,7 +575,7 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
case AV_CODEC_ID_SPEEX:
av_strlcatf(buff, size, "a=rtpmap:%d speex/%d\r\n",
payload_type, c->sample_rate);
-
+ break;
default:
/* Nothing special to do here... */
break;
diff --git a/libavformat/version.h b/libavformat/version.h
index 65412fb783..ee1772465e 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -31,7 +31,7 @@
#define LIBAVFORMAT_VERSION_MAJOR 54
#define LIBAVFORMAT_VERSION_MINOR 29
-#define LIBAVFORMAT_VERSION_MICRO 101
+#define LIBAVFORMAT_VERSION_MICRO 103
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \