changeset 9287:b00fc746bdf4 libavcodec

mlpdec: Simplify no restart header seen error.
author ramiro
date Mon, 30 Mar 2009 03:44:20 +0000
parents e02f401dde04
children 37313693196a
files mlpdec.c
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mlpdec.c	Mon Mar 30 03:42:40 2009 +0000
+++ b/mlpdec.c	Mon Mar 30 03:44:20 2009 +0000
@@ -997,9 +997,6 @@
                 }
 
                 if (!s->restart_seen) {
-                    av_log(m->avctx, AV_LOG_ERROR,
-                           "No restart header present in substream %d.\n",
-                           substr);
                     goto next_substr;
                 }
 
@@ -1008,9 +1005,6 @@
             }
 
             if (!s->restart_seen) {
-                av_log(m->avctx, AV_LOG_ERROR,
-                       "No restart header present in substream %d.\n",
-                       substr);
                 goto next_substr;
             }
 
@@ -1055,6 +1049,11 @@
         }
 
 next_substr:
+        if (!s->restart_seen) {
+            av_log(m->avctx, AV_LOG_ERROR,
+                   "No restart header present in substream %d.\n", substr);
+        }
+
         buf += substream_data_len[substr];
     }