diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-13 13:04:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-13 13:16:27 +0200 |
commit | 681868cbbe8a596860c454d34f259941e0c44d73 (patch) | |
tree | 6cb56a3913d24bd0a9a9623145e82d22b1c867bc /libavcodec/mpegvideo.h | |
parent | cf9050c715b45b0f0582687554cca3bf680124b3 (diff) | |
download | ffmpeg-681868cbbe8a596860c454d34f259941e0c44d73.tar.gz |
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.h | 2 |
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; /** |