Changeset de23e58
- Timestamp:
- Apr 10, 2017, 2:53:00 PM (8 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
- Children:
- 5bd9a2b
- Parents:
- 50f39f5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
r50f39f5 rde23e58 114 114 AVCodec *codec; 115 115 AVFrame *avFrame = s->avFrame; 116 #if FF_API_LAVF_AVCTX 117 AVCodecParameters *codecpar; 118 #endif 116 119 uint_t i; 117 120 sint_t selected_stream = -1; … … 195 198 196 199 #if FF_API_LAVF_AVCTX 197 AVCodecParameters *codecpar = avFormatCtx->streams[selected_stream]->codecpar;200 codecpar = avFormatCtx->streams[selected_stream]->codecpar; 198 201 if (codecpar == NULL) { 199 202 AUBIO_ERR("source_avcodec: Could not find decoder for %s", s->path); … … 211 214 #else 212 215 avCodecCtx = avFormatCtx->streams[selected_stream]->codec; 213 AVCodec *codec = avcodec_find_decoder(avCodecCtx->codec_id);216 codec = avcodec_find_decoder(avCodecCtx->codec_id); 214 217 #endif 215 218 if (codec == NULL) {
Note: See TracChangeset
for help on using the changeset viewer.