git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e92d58
)
roqvideodec: set AVFrame reference before reget_buffer.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 5 Nov 2011 22:27:00 +0000
(23:27 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Sun, 4 Dec 2011 15:04:27 +0000
(16:04 +0100)
Otherwise it might return a write-only frame which would break
decoding completely.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/roqvideodec.c
patch
|
blob
|
history
diff --git
a/libavcodec/roqvideodec.c
b/libavcodec/roqvideodec.c
index
64a15fa
..
527ba51
100644
(file)
--- 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;