Unified · Split
| @@ -41,8 +41,7 @@ static av_cold int g723_1_init(AVFormatContext *s) · 40 unmodified lines | |||
| 41 | 41 | ||
| 42 | st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; | 42 | st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; |
| 43 | st->codecpar->codec_id = AV_CODEC_ID_G723_1; | 43 | st->codecpar->codec_id = AV_CODEC_ID_G723_1; |
| 44 | st->codecpar->channel_layout = AV_CH_LAYOUT_MONO; | 44 | st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; |
| 45 | st->codecpar->channels = 1; | ||
| 46 | st->codecpar->sample_rate = 8000; | 45 | st->codecpar->sample_rate = 8000; |
| 47 | 46 | ||
| 48 | avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate); | 47 | avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate); |