Skip to content

Commit f67d4c9

Browse files
committed
Merge pull request #109 from cchampet/clean_common
Clean common
2 parents 8a2dcf5 + bc3cf85 commit f67d4c9

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

src/AvTranscoder/common.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ extern "C" {
55
#include <libavutil/error.h>
66
}
77

8+
#ifndef AV_ERROR_MAX_STRING_SIZE
9+
#define AV_ERROR_MAX_STRING_SIZE 64
10+
#endif
11+
812
namespace avtranscoder
913
{
1014

src/AvTranscoder/common.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ extern "C" {
3434
#endif
3535
#endif
3636

37-
#ifndef AV_ERROR_MAX_STRING_SIZE
38-
#define AV_ERROR_MAX_STRING_SIZE 64
39-
#endif
40-
4137
#ifndef SWIG
4238
#if LIBAVCODEC_VERSION_MAJOR < 54
4339
#define AVPixelFormat PixelFormat
@@ -52,8 +48,6 @@ extern "C" {
5248
namespace avtranscoder
5349
{
5450

55-
#define MAX_SWS_PLANE 4
56-
5751
typedef AVRational Rational;
5852

5953
/// Register all the codecs and formats which are enabled at configuration time.

src/AvTranscoder/decoder/VideoDecoder.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ bool VideoDecoder::decodeNextFrame()
9494

9595
if( ret < 0 )
9696
{
97-
char err[AV_ERROR_MAX_STRING_SIZE];
98-
av_strerror( ret, err, sizeof(err) );
9997
throw std::runtime_error( "an error occured during video decoding - " + getDescriptionFromErrorCode( ret ) );
10098
}
10199
}

src/AvTranscoder/transform/VideoTransform.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ extern "C" {
1212
#endif
1313
}
1414

15+
#define MAX_SWS_PLANE 4
16+
1517
#include <sstream>
1618
#include <iomanip>
1719
#include <cassert>

0 commit comments

Comments
 (0)