Merge commit '9200514ad8'
* commit '9200514ad8':
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:
commit
6f69f7a8bf
362 changed files with 6553 additions and 6077 deletions
|
|
@ -262,14 +262,14 @@ static int audio_read_header(AVFormatContext *context)
|
|||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
stream->codec->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
stream->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
#if HAVE_BIGENDIAN
|
||||
stream->codec->codec_id = AV_CODEC_ID_PCM_F32BE;
|
||||
stream->codecpar->codec_id = AV_CODEC_ID_PCM_F32BE;
|
||||
#else
|
||||
stream->codec->codec_id = AV_CODEC_ID_PCM_F32LE;
|
||||
stream->codecpar->codec_id = AV_CODEC_ID_PCM_F32LE;
|
||||
#endif
|
||||
stream->codec->sample_rate = self->sample_rate;
|
||||
stream->codec->channels = self->nports;
|
||||
stream->codecpar->sample_rate = self->sample_rate;
|
||||
stream->codecpar->channels = self->nports;
|
||||
|
||||
avpriv_set_pts_info(stream, 64, 1, 1000000); /* 64 bits pts in us */
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue