summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-13 13:04:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-13 13:16:27 +0200
commit681868cbbe8a596860c454d34f259941e0c44d73 (patch)
tree6cb56a3913d24bd0a9a9623145e82d22b1c867bc /libavcodec/mpegvideo.h
parentcf9050c715b45b0f0582687554cca3bf680124b3 (diff)
avcodec/mpegvideo: Fix psnr calculation with slice threads
This fixes a race condition and use of the wrong field, which become shared instead of per thread during some AVFrame changes. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r--libavcodec/mpegvideo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 7b0fcafc5c..20dba38e9d 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -143,6 +143,8 @@ typedef struct Picture{
int reference;
int shared;
+
+ uint64_t error[AV_NUM_DATA_POINTERS];
} Picture;
/**