[FFmpeg-devel] [PATCH] avformat/error_resilience: Allow file to be included in c++ programs

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed May 16 03:44:34 EEST 2018


2018-05-16 2:25 GMT+02:00, Peter Bennett <pb.mythtv at gmail.com>:
> From: Peter Bennett <pbennett at mythtv.org>
>
> The header stdatomic.h causes compile errors in a c++ compiler, even
> when extern "C" is used around it. The appropriate c++ include is <atomic>.
> We cannot use #include <atomic> inside error_resilience.h because that
> causes
> compile errors inside extern "C". With this change, using error_resilience.h
> in a
> c++ program works but requires also including <atomic> in the c++ code.
> ---
>  libavcodec/error_resilience.h

This is not an installed header, it must never be included from
c++ code.

Carl Eugen


More information about the ffmpeg-devel mailing list