Changeset 5bd9a2b for src/io


Ignore:
Timestamp:
Apr 10, 2017, 3:16:44 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:
808c8525
Parents:
de23e58
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    rde23e58 r5bd9a2b  
    112112  AVFormatContext *avFormatCtx = s->avFormatCtx;
    113113  AVCodecContext *avCodecCtx = s->avCodecCtx;
    114   AVCodec *codec;
    115114  AVFrame *avFrame = s->avFrame;
     115  sint_t selected_stream = -1;
    116116#if FF_API_LAVF_AVCTX
    117117  AVCodecParameters *codecpar;
    118118#endif
     119  AVCodec *codec;
    119120  uint_t i;
    120   sint_t selected_stream = -1;
    121121  int err;
    122122  if (path == NULL) {
     
    344344  AVFrame *avFrame = s->avFrame;
    345345  AVPacket avPacket = s->avPacket;
    346   av_init_packet (&avPacket);
    347346#ifdef HAVE_AVRESAMPLE
    348347  AVAudioResampleContext *avr = s->avr;
     
    351350#endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */
    352351  smpl_t *output = s->output;
     352  av_init_packet (&avPacket);
    353353  *read_samples = 0;
    354354
Note: See TracChangeset for help on using the changeset viewer.