Changeset de23e58 for src/io


Ignore:
Timestamp:
Apr 10, 2017, 2:53:00 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:
5bd9a2b
Parents:
50f39f5
Message:

src/io/source_avcodec.c: more fixes to declare before assigning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_avcodec.c

    r50f39f5 rde23e58  
    114114  AVCodec *codec;
    115115  AVFrame *avFrame = s->avFrame;
     116#if FF_API_LAVF_AVCTX
     117  AVCodecParameters *codecpar;
     118#endif
    116119  uint_t i;
    117120  sint_t selected_stream = -1;
     
    195198
    196199#if FF_API_LAVF_AVCTX
    197   AVCodecParameters *codecpar = avFormatCtx->streams[selected_stream]->codecpar;
     200  codecpar = avFormatCtx->streams[selected_stream]->codecpar;
    198201  if (codecpar == NULL) {
    199202    AUBIO_ERR("source_avcodec: Could not find decoder for %s", s->path);
     
    211214#else
    212215  avCodecCtx = avFormatCtx->streams[selected_stream]->codec;
    213   AVCodec *codec = avcodec_find_decoder(avCodecCtx->codec_id);
     216  codec = avcodec_find_decoder(avCodecCtx->codec_id);
    214217#endif
    215218  if (codec == NULL) {
Note: See TracChangeset for help on using the changeset viewer.