summaryrefslogtreecommitdiff
path: root/libavcodec/mpegpicture.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/mpegpicture.c')
-rw-r--r--libavcodec/mpegpicture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpegpicture.c b/libavcodec/mpegpicture.c
index 9df14151e6..f3a9dd05af 100644
--- a/libavcodec/mpegpicture.c
+++ b/libavcodec/mpegpicture.c
@@ -358,6 +358,9 @@ int ff_mpeg_ref_picture(AVCodecContext *avctx, Picture *dst, Picture *src)
dst->reference = src->reference;
dst->shared = src->shared;
+ memcpy(dst->encoding_error, src->encoding_error,
+ sizeof(dst->encoding_error));
+
return 0;
fail:
ff_mpeg_unref_picture(avctx, dst);