Merge remote-tracking branch 'qatar/master'
[ffmpeg.git] / libavcodec / fraps.c
index bcce97c..de98da7 100644 (file)
@@ -112,9 +112,9 @@ static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
              */
             if(j) dst[i] += dst[i - stride];
             else if(Uoff) dst[i] += 0x80;
-            if(get_bits_left(&gb) < 0){
+            if (get_bits_left(&gb) < 0) {
                 free_vlc(&vlc);
-                return -1;
+                return AVERROR_INVALIDDATA;
             }
         }
         dst += stride;