...
diff --git a/coders/mtv.c b/coders/mtv.c
index 8778c7a..5528480 100644
--- a/coders/mtv.c
+++ b/coders/mtv.c
@@ -212,7 +212,8 @@
       if (image->scene >= (image_info->scene+image_info->number_scenes-1))
         break;
     *buffer='\0';
-    (void) ReadBlobString(image,buffer);
+    if (ReadBlobString(image,buffer) == (char *) NULL)
+      break;
     count=(ssize_t) sscanf(buffer,"%lu %lu\n",&columns,&rows);
     if (count > 0)
       {