1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavutil
Aaron Levinson 5b281b476b libavutil/thread.h: Fixed g++ build error when ASSERT_LEVEL is greater than 1
Purpose: libavutil/thread.h: Fixed g++ build error when ASSERT_LEVEL
is greater than 1.  This is only relevant when thread.h is included by
C++ files.  In this case, the relevant code is only defined if
HAVE_PTHREADS is defined as 1.  Use configure --assert-level=2 to do
so.

Note: Issue discovered as a result of Coverity build failure.  Cause
of build failure pinpointed by Hendrik Leppkes.

Comments:

-- libavutil/thread.h: Altered ASSERT_PTHREAD_NORET definition such
   that it uses av_make_error_string instead of av_err2str().
   av_err2str() uses a "parenthesized type followed by an initializer
   list", which is apparently not valid C++.  This issue started
   occurring because thread.h is now included by the DeckLink C++
   files.  The alteration does the equivalent of what av_err2str()
   does, but instead declares the character buffer as a local
   variable.

Signed-off-by: Marton Balint <cus@passwd.hu>
2017-04-22 23:32:41 +02:00
..
2015-12-15 14:16:28 +01:00
2016-10-02 19:35:55 +02:00
2016-10-02 19:35:55 +02:00
2016-02-18 11:55:00 +01:00
2014-08-05 01:54:47 +02:00
2016-05-04 18:16:21 +02:00
2014-07-12 22:33:27 +02:00
2017-01-30 11:04:31 +01:00
2015-11-01 19:35:01 -05:00
2016-06-03 14:49:56 +02:00
2015-09-05 18:07:20 +02:00
2015-10-11 18:03:10 -04:00
2016-01-13 20:00:19 -05:00
2016-08-02 07:50:44 -07:00
2016-11-23 02:01:05 +01:00
2017-03-20 08:02:30 +01:00
2014-08-05 21:05:52 +02:00
2016-01-28 19:49:48 -08:00
2016-08-02 21:52:40 -07:00
2016-10-21 23:58:47 +02:00
2017-04-11 12:46:28 +08:00