diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-05 23:27:00 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-12-04 16:04:27 +0100 |
commit | 7679bd6e604980e44644ca6989e9bc2ef0a75819 (patch) | |
tree | 4e68816eb814d4a20f78f0426788b853437dea7a /libavcodec | |
parent | 1e92d58e444e482948c06bd968e99beb214f1735 (diff) | |
download | ffmpeg-7679bd6e604980e44644ca6989e9bc2ef0a75819.tar.gz |
roqvideodec: set AVFrame reference before reget_buffer.
Otherwise it might return a write-only frame which would break
decoding completely.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec')
-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 64a15fa23f..527ba51c99 100644 --- a/libavcodec/roqvideodec.c +++ b/libavcodec/roqvideodec.c @@ -175,6 +175,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; |