- Timestamp:
- Apr 10, 2017, 3:16:44 PM (8 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
rde23e58 r5bd9a2b 112 112 AVFormatContext *avFormatCtx = s->avFormatCtx; 113 113 AVCodecContext *avCodecCtx = s->avCodecCtx; 114 AVCodec *codec;115 114 AVFrame *avFrame = s->avFrame; 115 sint_t selected_stream = -1; 116 116 #if FF_API_LAVF_AVCTX 117 117 AVCodecParameters *codecpar; 118 118 #endif 119 AVCodec *codec; 119 120 uint_t i; 120 sint_t selected_stream = -1;121 121 int err; 122 122 if (path == NULL) { … … 344 344 AVFrame *avFrame = s->avFrame; 345 345 AVPacket avPacket = s->avPacket; 346 av_init_packet (&avPacket);347 346 #ifdef HAVE_AVRESAMPLE 348 347 AVAudioResampleContext *avr = s->avr; … … 351 350 #endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */ 352 351 smpl_t *output = s->output; 352 av_init_packet (&avPacket); 353 353 *read_samples = 0; 354 354
Note: See TracChangeset
for help on using the changeset viewer.