diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-05 23:27:00 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-05 23:55:46 +0100 |
commit | d9010daa6ffc053a41f702dd4c3483eb745355a9 (patch) | |
tree | 7bd536a34e615b7f1d69c8947911e2827560b6d4 | |
parent | 266f6eefc603dd3c34be7de94eec5c9c293b80f1 (diff) | |
download | ffmpeg-d9010daa6ffc053a41f702dd4c3483eb745355a9.tar.gz |
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>
-rw-r--r-- | libavcodec/roqvideodec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/roqvideodec.c b/libavcodec/roqvideodec.c index f0c3ebb8d9..161e7da08a 100644 --- a/libavcodec/roqvideodec.c +++ b/libavcodec/roqvideodec.c @@ -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; |