diff options
author | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-10-02 08:39:34 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-10-02 08:39:34 +0000 |
commit | 05931ab763c873198947142fc84dfe6c8c285fd6 (patch) | |
tree | c5a5fb87470bb10036901774e0a5daacbf3bb5e5 /libavcodec | |
parent | 35e33b9aac890111dd75ef1eb9aefe4b54c6f5a2 (diff) | |
download | ffmpeg-05931ab763c873198947142fc84dfe6c8c285fd6.tar.gz |
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.
Originally committed as revision 25308 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/fraps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index e9e6ecf450..9786fd0da2 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -155,7 +155,7 @@ static int decode_frame(AVCodecContext *avctx, 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 *avctx, * 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 | |