aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pngdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/pngdec.c')
-rw-r--r--libavcodec/pngdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 193e35e591..36db29e53e 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -853,7 +853,7 @@ static int decode_frame(AVCodecContext *avctx,
}
}
- s->current_picture->metadata = metadata;
+ av_frame_set_metadata(&s->current_picture, metadata);
metadata = NULL;
*picture = *s->current_picture;
*got_frame = 1;