diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-05 22:48:39 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-06 02:25:20 +0400 |
commit | 371e1654434f5934ca1665df22387024a82e6e27 (patch) | |
tree | 83f51e22bd76e8145b88691697755e93f2da3ae4 /libavcodec/fraps.c | |
parent | fb2288834ba8a51e8934cfe8b82ac468144a34df (diff) |
Try to set AVFrame.reference to correct values.
I am not sure these new values are correct, not am I sure
the semantics are a good idea since we do not seem to make any
use of them but they caused a lot of confusion, but this
seems to make things closer to matching the documentation.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r-- | libavcodec/fraps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index aad8731028..d6f9a554cf 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -172,7 +172,7 @@ static int decode_frame(AVCodecContext *avctx, return -1; } - f->reference = 1; + f->reference = 3; f->buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; @@ -215,7 +215,7 @@ static int decode_frame(AVCodecContext *avctx, return -1; } - f->reference = 1; + f->reference = 3; f->buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; @@ -243,7 +243,7 @@ static int decode_frame(AVCodecContext *avctx, */ avctx->pix_fmt = PIX_FMT_YUVJ420P; planes = 3; - f->reference = 1; + f->reference = 3; f->buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; @@ -288,7 +288,7 @@ static int decode_frame(AVCodecContext *avctx, /* Virtually the same as version 4, but is for RGB24 */ avctx->pix_fmt = PIX_FMT_BGR24; planes = 3; - f->reference = 1; + f->reference = 3; f->buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; |