summaryrefslogtreecommitdiff
path: root/libavcodec/fraps.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2008-12-04 14:43:42 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2008-12-04 14:43:42 +0000
commit675f71144b1eeb08f3e3797aee39d94fce6a87e5 (patch)
tree60af34b91cf05596163c814c3c09393baff18eae /libavcodec/fraps.c
parent4d35964d01001b8695f5d29f56e03ba4d5d87219 (diff)
Fraps version 3 seems to be the same as Fraps v5
Originally committed as revision 16002 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r--libavcodec/fraps.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index e03c1fa10c..0c31e03c41 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -148,10 +148,10 @@ static int decode_frame(AVCodecContext *avctx,
version = header & 0xff;
header_size = (header & (1<<30))? 8 : 4; /* bit 30 means pad to 8 bytes */
- if (version > 2 && version != 4 && version != 5) {
+ if (version > 5) {
av_log(avctx, AV_LOG_ERROR,
"This file is encoded with Fraps version %d. " \
- "This codec can only decode version 0, 1, 2 and 4.\n", version);
+ "This codec can only decode versions <= 5.\n", version);
return -1;
}
@@ -288,6 +288,7 @@ static int decode_frame(AVCodecContext *avctx,
}
}
break;
+ case 3:
case 5:
/* Virtually the same as version 4, but is for RGB24 */
avctx->pix_fmt = PIX_FMT_BGR24;