Changeset dc7362fd


Ignore:
Timestamp:
Dec 31, 2018, 5:25:08 PM (11 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/timestretch, master
Children:
2ca09bf
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.