[FFmpeg-cvslog] r25308 - trunk/libavcodec/fraps.c
darkshikari
subversion
Sat Oct 2 10:39:34 CEST 2010
Author: darkshikari
Date: Sat Oct 2 10:39:34 2010
New Revision: 25308
Log:
Make FRAPS decoder use PC range instead of TV range
FRAPS appears to output PC range streams. I can't guarantee this is true of
all versions.
Modified:
trunk/libavcodec/fraps.c
Modified: trunk/libavcodec/fraps.c
==============================================================================
--- trunk/libavcodec/fraps.c Sat Oct 2 09:42:42 2010 (r25307)
+++ trunk/libavcodec/fraps.c Sat Oct 2 10:39:34 2010 (r25308)
@@ -155,7 +155,7 @@ static int decode_frame(AVCodecContext *
case 0:
default:
/* Fraps v0 is a reordered YUV420 */
- avctx->pix_fmt = PIX_FMT_YUV420P;
+ avctx->pix_fmt = PIX_FMT_YUVJ420P;
if ( (buf_size != avctx->width*avctx->height*3/2+header_size) &&
(buf_size != header_size) ) {
@@ -240,7 +240,7 @@ static int decode_frame(AVCodecContext *
* Fraps v2 is Huffman-coded YUV420 planes
* Fraps v4 is virtually the same
*/
- avctx->pix_fmt = PIX_FMT_YUV420P;
+ avctx->pix_fmt = PIX_FMT_YUVJ420P;
planes = 3;
f->reference = 1;
f->buffer_hints = FF_BUFFER_HINTS_VALID |
More information about the ffmpeg-cvslog
mailing list