projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7952be
)
mlpdec: Simplify no restart header seen error.
author
Ramiro Polla
<ramiro.polla@gmail.com>
Mon, 30 Mar 2009 03:44:20 +0000
(
03:44
+0000)
committer
Ramiro Polla
<ramiro.polla@gmail.com>
Mon, 30 Mar 2009 03:44:20 +0000
(
03:44
+0000)
Originally committed as revision 18239 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mlpdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mlpdec.c
b/libavcodec/mlpdec.c
index
c053138
..
ef3071e
100644
(file)
--- 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];
}