From: Paul Brossier Date: Fri, 17 Mar 2017 17:33:42 +0000 (+0100) Subject: src/io/source_avcodec.c: always mark eof on error X-Git-Tag: 0.4.5~51 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=bdf7cafc88738726bebdda150ab34159ba58cec2 src/io/source_avcodec.c: always mark eof on error --- diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c index 6335df6a..a17d1a32 100644 --- a/src/io/source_avcodec.c +++ b/src/io/source_avcodec.c @@ -356,6 +356,7 @@ void aubio_source_avcodec_readframe(aubio_source_avcodec_t *s, uint_t * read_sam char errorstr[256]; av_strerror (err, errorstr, sizeof(errorstr)); AUBIO_ERR("source_avcodec: could not read frame in %s (%s)\n", s->path, errorstr); + s->eof = 1; goto beach; } } while (avPacket.stream_index != s->selected_stream);