Changes in src/io/source_avcodec.c [58fe197:c3e98d7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
r58fe197 rc3e98d7 59 59 #include "source_avcodec.h" 60 60 61 #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56, 56, 0)62 61 #define AUBIO_AVCODEC_MAX_BUFFER_SIZE FF_MIN_BUFFER_SIZE 63 #else64 #define AUBIO_AVCODEC_MAX_BUFFER_SIZE AV_INPUT_BUFFER_MIN_SIZE65 #endif66 62 67 63 struct _aubio_source_avcodec_t { … … 275 271 // default to mono output 276 272 aubio_source_avcodec_reset_resampler(s, 0); 277 278 if (s->avr == NULL) goto beach;279 273 280 274 s->eof = 0; … … 425 419 goto beach; 426 420 } 427 428 #if LIBAVUTIL_VERSION_MAJOR > 52429 if (avFrame->channels != (sint_t)s->input_channels) {430 AUBIO_WRN ("source_avcodec: trying to read from %d channel(s),"431 "but configured for %d; is '%s' corrupt?\n", avFrame->channels,432 s->input_channels, s->path);433 goto beach;434 }435 #endif436 421 437 422 #ifdef HAVE_AVRESAMPLE
Note: See TracChangeset
for help on using the changeset viewer.