Changeset dc7362fd


Ignore:
Timestamp:
Dec 31, 2018, 5:25:08 PM (6 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/timestretch, fix/ffmpeg5, master
Children:
2ca09bf, d0ef4b7
Parents:
c1c3a99
Message:

[source_avcodec] prevent leak when closing swresample context

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    rc1c3a99 rdc7362fd  
    620620#ifdef HAVE_AVRESAMPLE
    621621    avresample_close( s->avr );
     622    av_free ( s->avr );
    622623#elif defined(HAVE_SWRESAMPLE)
    623624    swr_close ( s->avr );
    624 #endif
    625     av_free ( s->avr );
     625    swr_free ( &s->avr );
     626#endif
    626627  }
    627628  s->avr = NULL;
Note: See TracChangeset for help on using the changeset viewer.