]> git.sesse.net Git - ffmpeg/commitdiff
vc1dec: avoid == -1 checks for errors.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 27 Mar 2012 11:21:28 +0000 (13:21 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 27 Mar 2012 11:21:28 +0000 (13:21 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vc1dec.c

index cbffec1812dcd8787a2ab0f190f34ab3d4b24e02..079ff5e85749cc30b3313075273f60998f2c95da 100644 (file)
@@ -5490,11 +5490,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;
         }
     }