Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-04 12:46:09 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-04-05 14:32:09 +0300
commitcf880ccb6a82476e1b944d5d0e742b63de21283a (patch)
tree9e3c9f0b0262aece73f593a520aea7c0c98460eb /libavcodec/error_resilience.h
parent4a58d757de286f49eacb071d12f7e5c6cff61941 (diff)
avcodec/error_resilience: Avoid race with updating the error_count
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/error_resilience.h')
-rw-r--r--libavcodec/error_resilience.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/error_resilience.h b/libavcodec/error_resilience.h
index 4e00863ba3..1f52f200f2 100644
--- a/libavcodec/error_resilience.h
+++ b/libavcodec/error_resilience.h
@@ -61,7 +61,8 @@ typedef struct ERContext {
int mb_stride;
int b8_stride;
- int error_count, error_occurred;
+ volatile int error_count;
+ int error_occurred;
uint8_t *error_status_table;
uint8_t *er_temp_buffer;
int16_t *dc_val[3];