aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpdec.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-01-17 15:29:12 +0200
committerMartin Storsjö <martin@martin.st>2013-01-20 18:20:42 +0200
commitc6f1dc8e4cd967ae056698eafb891a08003c211c (patch)
treee2793b6089cc2908f7d52803af23e8d1aa15fdea /libavformat/rtpdec.c
parenta9c847c1baff09f954b12c1dcc832b4f601f6f6e (diff)
downloadffmpeg-c6f1dc8e4cd967ae056698eafb891a08003c211c.tar.gz
rtpdec: Move setting the parsing flags to the actual depacketizers
This gets rid of almost all the codec specific details from the generic rtpdec code. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec.c')
-rw-r--r--libavformat/rtpdec.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 38bd333e9c..4379e6f4f1 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -502,18 +502,6 @@ RTPDemuxContext *ff_rtp_parse_open(AVFormatContext *s1, AVStream *st,
rtp_init_statistics(&s->statistics, 0);
if (st) {
switch (st->codec->codec_id) {
- case AV_CODEC_ID_MPEG1VIDEO:
- case AV_CODEC_ID_MPEG2VIDEO:
- case AV_CODEC_ID_MP2:
- case AV_CODEC_ID_MP3:
- case AV_CODEC_ID_MPEG4:
- case AV_CODEC_ID_H263:
- case AV_CODEC_ID_H264:
- st->need_parsing = AVSTREAM_PARSE_FULL;
- break;
- case AV_CODEC_ID_VORBIS:
- st->need_parsing = AVSTREAM_PARSE_HEADERS;
- break;
case AV_CODEC_ID_ADPCM_G722:
/* According to RFC 3551, the stream clock rate is 8000
* even if the sample rate is 16000. */