X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Frpza.c;h=4c87b3c1b21c77d49279905f379302bd02924fcd;hb=dd3ca3ea15392da8636c06764e2da31e6ca700f0;hp=ea90ed6756a56bc8b40574b2c198200f94d4462b;hpb=ecaf5143282cc7a8335f5e19c750de66b1ee8389;p=ffmpeg diff --git a/libavcodec/rpza.c b/libavcodec/rpza.c index ea90ed6756a..4c87b3c1b21 100644 --- a/libavcodec/rpza.c +++ b/libavcodec/rpza.c @@ -30,8 +30,8 @@ * Note that this decoder reads big endian RGB555 pixel values from the * bytestream, arranges them in the host's endian order, and outputs * them to the final rendered map in the same host endian order. This is - * intended behavior as the ffmpeg documentation states that RGB555 pixels - * shall be stored in native CPU endianness. + * intended behavior as the libavcodec documentation states that RGB555 + * pixels shall be stored in native CPU endianness. */ #include @@ -250,7 +250,7 @@ static int rpza_decode_frame(AVCodecContext *avctx, s->buf = buf; s->size = buf_size; - s->frame.reference = 1; + s->frame.reference = 3; s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; if (avctx->reget_buffer(avctx, &s->frame)) { av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");