Changeset 41ebc91 for src


Ignore:
Timestamp:
Nov 30, 2016, 5:17:24 PM (8 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, sampler, yinfft+
Children:
261836d
Parents:
8b210a9
Message:

src/io/source_avcodec.c: call avformat_free_context after avformat_close_input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    r8b210a9 r41ebc91  
    503503  s->avCodecCtx = NULL;
    504504  if (s->avFormatCtx != NULL) {
    505     avformat_close_input ( &(s->avFormatCtx) );
    506   }
    507   s->avFormatCtx = NULL;
     505    avformat_close_input(&s->avFormatCtx);
     506    avformat_free_context(s->avFormatCtx);
     507    s->avFormatCtx = NULL;
     508  }
    508509  return AUBIO_OK;
    509510}
Note: See TracChangeset for help on using the changeset viewer.