Changeset 1a6f2de


Ignore:
Timestamp:
Apr 10, 2017, 4:27:07 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
Children:
b762f8d
Parents:
b678858
Message:

src/io/source_avcodec.c: more fixes for declaration before assignment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    rb678858 r1a6f2de  
    363363#endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */
    364364  smpl_t *output = s->output;
     365#ifndef FF_API_LAVF_AVCTX
     366  int len = 0;
     367#endif
    365368  av_init_packet (&avPacket);
    366369  *read_samples = 0;
     
    404407  }
    405408#else
    406   int len = avcodec_decode_audio4(avCodecCtx, avFrame, &got_frame, &avPacket);
     409  len = avcodec_decode_audio4(avCodecCtx, avFrame, &got_frame, &avPacket);
    407410
    408411  if (len < 0) {
Note: See TracChangeset for help on using the changeset viewer.