shithub: aubio

Download patch

ref: bdf7cafc88738726bebdda150ab34159ba58cec2
parent: c7d444a96b456843e2774610a06879218faf6e4b
author: Paul Brossier <piem@piem.org>
date: Fri Mar 17 14:33:42 EDT 2017

src/io/source_avcodec.c: always mark eof on error

--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -356,6 +356,7 @@
       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);