diff --git a/libavformat/mpc8.c b/libavformat/mpc8.c
index 9e7aa9a3267e5e14fcbcb2d946e6dab69e56a95c..5ee4e00a5dea37f60f14ffe09b98b14482b53453 100644
--- a/libavformat/mpc8.c
+++ b/libavformat/mpc8.c
@@ -139,8 +139,8 @@ static void mpc8_parse_seektable(AVFormatContext *s, int64_t off)
     int i, t, seekd;
     GetBitContext gb;
 
-    if (s->nb_streams<=0) {
-        av_log(s, AV_LOG_ERROR, "cannot parse stream table before stream header\n");
+    if (s->nb_streams == 0) {
+        av_log(s, AV_LOG_ERROR, "No stream added before parsing seek table\n");
         return;
     }