git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vc1, mss2: Check for any negative return value from ff_vc1_parse_frame_header
[ffmpeg.git]
/
libavcodec
/
mss2.c
diff --git
a/libavcodec/mss2.c
b/libavcodec/mss2.c
index
44b6f1f
..
2562209
100644
(file)
--- a/
libavcodec/mss2.c
+++ b/
libavcodec/mss2.c
@@
-388,7
+388,7
@@
static int decode_wmv9(AVCodecContext *avctx, const uint8_t *buf, int buf_size,
s->loop_filter = avctx->skip_loop_filter < AVDISCARD_ALL;
- if (ff_vc1_parse_frame_header(v, &s->gb)
== -1
) {
+ if (ff_vc1_parse_frame_header(v, &s->gb)
< 0
) {
av_log(v->s.avctx, AV_LOG_ERROR, "header error\n");
return AVERROR_INVALIDDATA;
}