Changeset 6551a683


Ignore:
Timestamp:
Nov 16, 2018, 9:18:14 PM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

[source] [avcodec] remove oldavr stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    rac97e80d r6551a683  
    309309#ifdef HAVE_AVRESAMPLE
    310310    AVAudioResampleContext *avr = avresample_alloc_context();
    311     AVAudioResampleContext *oldavr = s->avr;
    312311#elif defined(HAVE_SWRESAMPLE)
    313312    SwrContext *avr = swr_alloc();
    314     SwrContext *oldavr = s->avr;
    315313#endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */
    316314
     
    340338    }
    341339    s->avr = avr;
    342     if (oldavr != NULL) {
    343 #ifdef HAVE_AVRESAMPLE
    344       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     }
    351340  }
    352341}
Note: See TracChangeset for help on using the changeset viewer.