diff --git a/32blit-sdl/VideoCaptureFfmpeg.cpp b/32blit-sdl/VideoCaptureFfmpeg.cpp index 1fc89ec91..120c3246b 100644 --- a/32blit-sdl/VideoCaptureFfmpeg.cpp +++ b/32blit-sdl/VideoCaptureFfmpeg.cpp @@ -74,7 +74,7 @@ int encode_video = 0, encode_audio = 0; char *_av_err2str(int errnum) { /* C++ friendly alternate to av_err2str */ - char buf[AV_ERROR_MAX_STRING_SIZE] = {}; + thread_local char buf[AV_ERROR_MAX_STRING_SIZE] = {}; return av_make_error_string(buf, AV_ERROR_MAX_STRING_SIZE, errnum); }