Skip to content

Commit 345ffd7

Browse files
update libavcodec API support
1 parent 44eac49 commit 345ffd7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/AvTranscoder/Metadatas/VideoStreamProperties.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ VideoProperties videoStreamInfo( AVFormatContext* formatContext, const size_t in
132132
case AVCOL_TRC_UNSPECIFIED: vp.colorTransfert = "unspecified"; break;
133133
case AVCOL_TRC_GAMMA22: vp.colorTransfert = "Gamma 2.2"; break;
134134
case AVCOL_TRC_GAMMA28: vp.colorTransfert = "Gamma 2.8"; break;
135+
#if LIBAVCODEC_VERSION_MAJOR > 53
135136
case AVCOL_TRC_SMPTE240M: vp.colorTransfert = "Smpte 240M"; break;
137+
#endif
136138
#if LIBAVCODEC_VERSION_MAJOR > 54
137139
#ifdef AVCOL_TRC_SMPTE170M
138140
case AVCOL_TRC_SMPTE170M: vp.colorTransfert = "Rec 601 / ITU-R BT601-6 525 or 625 / ITU-R BT1358 525 or 625 / ITU-R BT1700 NTSC"; break;
@@ -175,8 +177,8 @@ VideoProperties videoStreamInfo( AVFormatContext* formatContext, const size_t in
175177
case AVCOL_SPC_SMPTE240M: vp.colorspace = "Smpte 240M"; break;
176178
#if LIBAVCODEC_VERSION_MAJOR > 53
177179
case AVCOL_SPC_YCOCG: vp.colorspace = "Y Co Cg"; break;
178-
#else
179-
case AVCOL_SPC_YCGCO: vp.colorspace = "Y Cg Co"; break;
180+
//#else
181+
// case AVCOL_SPC_YCGCO: vp.colorspace = "Y Cg Co"; break;
180182
#endif
181183
#if LIBAVCODEC_VERSION_MAJOR > 54
182184
#ifdef AVCOL_TRC_BT2020_12

0 commit comments

Comments
 (0)