summaryrefslogtreecommitdiff
path: root/libavcodec/error_resilience.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-04 11:46:09 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-05 13:32:09 +0200
commitcf880ccb6a82476e1b944d5d0e742b63de21283a (patch)
tree9e3c9f0b0262aece73f593a520aea7c0c98460eb /libavcodec/error_resilience.h
parent4a58d757de286f49eacb071d12f7e5c6cff61941 (diff)
downloadffmpeg-cf880ccb6a82476e1b944d5d0e742b63de21283a.tar.gz
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];