Changeset 6551a683
- Timestamp:
- Nov 16, 2018, 9:18:14 PM (6 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
- Children:
- ff9c62a
- Parents:
- ac97e80d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
rac97e80d r6551a683 309 309 #ifdef HAVE_AVRESAMPLE 310 310 AVAudioResampleContext *avr = avresample_alloc_context(); 311 AVAudioResampleContext *oldavr = s->avr;312 311 #elif defined(HAVE_SWRESAMPLE) 313 312 SwrContext *avr = swr_alloc(); 314 SwrContext *oldavr = s->avr;315 313 #endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */ 316 314 … … 340 338 } 341 339 s->avr = avr; 342 if (oldavr != NULL) {343 #ifdef HAVE_AVRESAMPLE344 avresample_close( oldavr );345 #elif defined(HAVE_SWRESAMPLE)346 swr_close ( oldavr );347 #endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */348 av_free ( oldavr );349 oldavr = NULL;350 }351 340 } 352 341 }
Note: See TracChangeset
for help on using the changeset viewer.