Changes in src/io/source_avcodec.c [3e944fe4:ba67cb6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
r3e944fe4 rba67cb6 357 357 av_strerror (err, errorstr, sizeof(errorstr)); 358 358 AUBIO_ERR("source_avcodec: could not read frame in %s (%s)\n", s->path, errorstr); 359 s->eof = 1;360 359 goto beach; 361 360 } … … 375 374 if (ret < 0) { 376 375 if (ret == AVERROR(EAGAIN)) { 377 //AUBIO_WRN("source_avcodec: output is not available right now - user must try to send new input\n"); 378 goto beach; 376 AUBIO_WRN("source_avcodec: output is not available right now - user must try to send new input\n"); 379 377 } else if (ret == AVERROR_EOF) { 380 378 AUBIO_WRN("source_avcodec: the decoder has been fully flushed, and there will be no more output frames\n"); … … 566 564 s->avr = NULL; 567 565 if (s->avCodecCtx != NULL) { 568 #ifndef HAVE_AUBIO_LIBAVCODEC_DEPRECATED569 avcodec_free_context( &s->avCodecCtx );570 #else571 566 avcodec_close ( s->avCodecCtx ); 572 #endif573 567 } 574 568 s->avCodecCtx = NULL;
Note: See TracChangeset
for help on using the changeset viewer.