mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-16 03:50:05 +01:00
Merge commit '9200514ad8717c63f82101dc394f4378854325bf'
* commit '9200514ad8717c63f82101dc394f4378854325bf':
lavf: replace AVStream.codec with AVStream.codecpar
This has been a HUGE effort from:
- Derek Buitenhuis <derek.buitenhuis@gmail.com>
- Hendrik Leppkes <h.leppkes@gmail.com>
- wm4 <nfxjfg@googlemail.com>
- Clément Bœsch <clement@stupeflix.com>
- James Almer <jamrial@gmail.com>
- Michael Niedermayer <michael@niedermayer.cc>
- Rostislav Pehlivanov <atomnuker@gmail.com>
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
@@ -526,12 +526,12 @@ RTPDemuxContext *ff_rtp_parse_open(AVFormatContext *s1, AVStream *st,
|
||||
|
||||
rtp_init_statistics(&s->statistics, 0);
|
||||
if (st) {
|
||||
switch (st->codec->codec_id) {
|
||||
switch (st->codecpar->codec_id) {
|
||||
case AV_CODEC_ID_ADPCM_G722:
|
||||
/* According to RFC 3551, the stream clock rate is 8000
|
||||
* even if the sample rate is 16000. */
|
||||
if (st->codec->sample_rate == 8000)
|
||||
st->codec->sample_rate = 16000;
|
||||
if (st->codecpar->sample_rate == 8000)
|
||||
st->codecpar->sample_rate = 16000;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user