Browse Source

Set AVFrame reference before reget_buffer.

Otherwise it might return a write-only frame which would break
decoding completely.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
tags/n0.9
Reimar Döffinger 14 years ago
parent
commit
d9010daa6f
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/roqvideodec.c

+ 1
- 0
libavcodec/roqvideodec.c View File

@@ -189,6 +189,7 @@ static int roq_decode_frame(AVCodecContext *avctx,
RoqContext *s = avctx->priv_data;
int copy= !s->current_frame->data[0];

s->current_frame->reference = 3;
if (avctx->reget_buffer(avctx, s->current_frame)) {
av_log(avctx, AV_LOG_ERROR, " RoQ: get_buffer() failed\n");
return -1;


Loading…
Cancel
Save