- Timestamp:
- Apr 7, 2017, 3:16:43 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:
- f4dbf64b
- Parents:
- 7a2666f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
r7a2666f r8250214 43 43 44 44 // backward compatibility with libavcodec55 45 #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57,0,0) 46 #define HAVE_AUBIO_LIBAVCODEC_DEPRECATED 1 47 #endif 48 45 49 #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,28,1) 46 #warning "libavcodec55 is deprecated" 47 #define HAVE_AUBIO_LIBAVCODEC_DEPRECATED 1 50 #warning "libavcodec < 56 is deprecated" 48 51 #define av_frame_alloc avcodec_alloc_frame 49 52 #define av_frame_free avcodec_free_frame … … 575 578 if (s->avFormatCtx != NULL) { 576 579 avformat_close_input(&s->avFormatCtx); 577 #ifndef HAVE_AUBIO_LIBAVCODEC_DEPRECATED // avoid crash on old libavcodec54578 avformat_free_context(s->avFormatCtx);579 #endif580 580 s->avFormatCtx = NULL; 581 581 }
Note: See TracChangeset
for help on using the changeset viewer.