summaryrefslogtreecommitdiffstats
path: root/libavcodec/fraps.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r--libavcodec/fraps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index bcce97c..de98da7 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -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;
OpenPOWER on IntegriCloud