X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Ferror_resilience.h;h=664a765659272a214b9807de2584c756a03f3228;hb=77eba7bd99355fc37a2bfc9d0224218f4022762c;hp=27c20086948e923c2ea3609e4067491a6fe19afc;hpb=e29e7b630504489c9ddb4d6a88a9c7651ccced37;p=ffmpeg diff --git a/libavcodec/error_resilience.h b/libavcodec/error_resilience.h index 27c20086948..664a7656592 100644 --- a/libavcodec/error_resilience.h +++ b/libavcodec/error_resilience.h @@ -20,6 +20,7 @@ #define AVCODEC_ERROR_RESILIENCE_H #include +#include #include "avcodec.h" #include "me_cmp.h" @@ -60,7 +61,7 @@ typedef struct ERContext { ptrdiff_t mb_stride; ptrdiff_t b8_stride; - volatile int error_count; + atomic_int error_count; int error_occurred; uint8_t *error_status_table; uint8_t *er_temp_buffer;