Changeset 1504b7c for src


Ignore:
Timestamp:
Dec 11, 2016, 2:47:39 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:
cd2cbc4
Parents:
dcde285
Message:

src/io/source_avcodec.c: fix for old libavcodec54

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    rdcde285 r1504b7c  
    4242#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,28,1)
    4343#warning "libavcodec55 is deprecated"
     44#define HAVE_AUBIO_LIBAVCODEC_DEPRECATED 1
    4445#define av_frame_alloc  avcodec_alloc_frame
    4546#define av_frame_free avcodec_free_frame
     
    513514  if (s->avFormatCtx != NULL) {
    514515    avformat_close_input(&s->avFormatCtx);
     516#ifndef HAVE_AUBIO_LIBAVCODEC_DEPRECATED // avoid crash on old libavcodec54
    515517    avformat_free_context(s->avFormatCtx);
     518#endif
    516519    s->avFormatCtx = NULL;
    517520  }
Note: See TracChangeset for help on using the changeset viewer.