[FFmpeg-cvslog] thp: signal EOF

Piotr Bandurski git at videolan.org
Wed Nov 21 11:25:52 CET 2012


ffmpeg | branch: master | Piotr Bandurski <ami_stuff at o2.pl> | Wed Nov 21 10:21:54 2012 +0000| [25d8ebd422f3d6478a1add13792a9fdbb224bccc] | committer: Paul B Mahol

thp: signal EOF

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=25d8ebd422f3d6478a1add13792a9fdbb224bccc
---

 libavformat/thp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/thp.c b/libavformat/thp.c
index 0e96b53..4463484 100644
--- a/libavformat/thp.c
+++ b/libavformat/thp.c
@@ -151,7 +151,7 @@ static int thp_read_packet(AVFormatContext *s,
     if (thp->audiosize == 0) {
         /* Terminate when last frame is reached.  */
         if (thp->frame >= thp->framecnt)
-            return AVERROR(EIO);
+            return AVERROR_EOF;
 
         avio_seek(pb, thp->next_frame, SEEK_SET);
 



More information about the ffmpeg-cvslog mailing list