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>
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user