Mercurial > libavcodec.hg
changeset 8257:6f0821e1f899 libavcodec
Fraps version 3 seems to be the same as Fraps v5
author | kostya |
---|---|
date | Thu, 04 Dec 2008 14:43:42 +0000 |
parents | 765685da1483 |
children | b41482ad0ef5 |
files | fraps.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/fraps.c Thu Dec 04 02:59:11 2008 +0000 +++ b/fraps.c Thu Dec 04 14:43:42 2008 +0000 @@ -148,10 +148,10 @@ 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 @@ } } break; + case 3: case 5: /* Virtually the same as version 4, but is for RGB24 */ avctx->pix_fmt = PIX_FMT_BGR24;