[FFmpeg-cvslog] r18239 - trunk/libavcodec/mlpdec.c

ramiro subversion
Mon Mar 30 05:44:20 CEST 2009


Author: ramiro
Date: Mon Mar 30 05:44:20 2009
New Revision: 18239

Log:
mlpdec: Simplify no restart header seen error.

Modified:
   trunk/libavcodec/mlpdec.c

Modified: trunk/libavcodec/mlpdec.c
==============================================================================
--- trunk/libavcodec/mlpdec.c	Mon Mar 30 05:42:40 2009	(r18238)
+++ trunk/libavcodec/mlpdec.c	Mon Mar 30 05:44:20 2009	(r18239)
@@ -997,9 +997,6 @@ static int read_access_unit(AVCodecConte
                 }
 
                 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 @@ static int read_access_unit(AVCodecConte
             }
 
             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 @@ static int read_access_unit(AVCodecConte
         }
 
 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];
     }
 



More information about the ffmpeg-cvslog mailing list