diff options
author | Martin Storsjö <martin@martin.st> | 2013-05-15 11:51:03 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-05-15 12:13:53 +0300 |
commit | ec7d002e55590bf9e2c2745065ec3463364a5273 (patch) | |
tree | 2d59f9821760e2e1eb1df92d80c01d72f2efc432 /libavcodec/vc1dec.c | |
parent | ccb148e4780e63f71967272b746e02bf5a24da66 (diff) |
vc1, mss2: Check for any negative return value from ff_vc1_parse_frame_header
This is required if we return other error codes than explicitly
-1, which so far has been the only other possible return value
besides 0.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r-- | libavcodec/vc1dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index a3b6031752..86806b1d21 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -5464,11 +5464,11 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data, // do parse frame header v->pic_header_flag = 0; if (v->profile < PROFILE_ADVANCED) { - if (ff_vc1_parse_frame_header(v, &s->gb) == -1) { + if (ff_vc1_parse_frame_header(v, &s->gb) < 0) { goto err; } } else { - if (ff_vc1_parse_frame_header_adv(v, &s->gb) == -1) { + if (ff_vc1_parse_frame_header_adv(v, &s->gb) < 0) { goto err; } } |