avcodec/mpegvideo: Fix psnr calculation with slice threads
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Jun 2014 11:04:31 +0000 (13:04 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Jun 2014 11:16:27 +0000 (13:16 +0200)
commit681868cbbe8a596860c454d34f259941e0c44d73
tree6cb56a3913d24bd0a9a9623145e82d22b1c867bc
parentcf9050c715b45b0f0582687554cca3bf680124b3
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>
libavcodec/mpegvideo.h
libavcodec/mpegvideo_enc.c