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/utvideo.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/utvideo.c')
-rw-r--r-- | libavcodec/utvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utvideo.c b/libavcodec/utvideo.c index 4c3b2a1621..6fb384a4e4 100644 --- a/libavcodec/utvideo.c +++ b/libavcodec/utvideo.c @@ -297,7 +297,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac if (c->pic.data[0]) avctx->release_buffer(avctx, &c->pic); - c->pic.reference = 1; + c->pic.reference = 3; c->pic.buffer_hints = FF_BUFFER_HINTS_VALID; if ((ret = avctx->get_buffer(avctx, &c->pic)) < 0) { av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); |