summaryrefslogtreecommitdiff
path: root/libavcodec/mlpdec.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-03-30 03:44:20 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-03-30 03:44:20 +0000
commit01aaf092746728aeb5290b6a19c721a85c12427e (patch)
tree998e7f5c2e8fe61b7604d948239fc73580f58ea4 /libavcodec/mlpdec.c
parentd7952be31131a7072842f20fc4e8ae873aa1a83c (diff)
mlpdec: Simplify no restart header seen error.
Originally committed as revision 18239 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r--libavcodec/mlpdec.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c
index c053138046..ef3071eec0 100644
--- a/libavcodec/mlpdec.c
+++ b/libavcodec/mlpdec.c
@@ -997,9 +997,6 @@ static int read_access_unit(AVCodecContext *avctx, void* data, int *data_size,
}
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(AVCodecContext *avctx, void* data, int *data_size,
}
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(AVCodecContext *avctx, void* data, int *data_size,
}
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];
}