Changes in src/io/source_avcodec.c [fc633f3:d4927c2]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
rfc633f3 rd4927c2 492 492 uint_t length = aubio_source_validate_input_length("source_avcodec", s->path, 493 493 s->hop_size, read_data->length); 494 if (!s->avr || !s->avFormatCtx || !s->avCodecCtx) {495 AUBIO_ERR("source_avcodec: could not read from %s (file was closed)\n",496 s->path);497 *read= 0;498 return;499 }500 494 while (total_wrote < length) { 501 495 end = MIN(s->read_samples - s->read_index, length - total_wrote); … … 536 530 uint_t channels = aubio_source_validate_input_channels("source_avcodec", 537 531 s->path, s->input_channels, read_data->height); 538 if (!s->avr || !s->avFormatCtx || !s->avCodecCtx) {539 AUBIO_ERR("source_avcodec: could not read from %s (file was closed)\n",540 s->path);541 *read= 0;542 return;543 }544 532 while (total_wrote < length) { 545 533 end = MIN(s->read_samples - s->read_index, length - total_wrote);
Note: See TracChangeset
for help on using the changeset viewer.