summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/cdgraphics.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/cdgraphics.c b/libavcodec/cdgraphics.c
index fa835b9897..8f04e01297 100644
--- a/libavcodec/cdgraphics.c
+++ b/libavcodec/cdgraphics.c
@@ -71,8 +71,9 @@ typedef struct CDGraphicsContext {
static void cdg_init_frame(AVFrame *frame)
{
avcodec_get_frame_defaults(frame);
- frame->reference = 1;
+ frame->reference = 3;
frame->buffer_hints = FF_BUFFER_HINTS_VALID |
+ FF_BUFFER_HINTS_READABLE |
FF_BUFFER_HINTS_PRESERVE |
FF_BUFFER_HINTS_REUSABLE;
}