Skip to content

Commit 73ec2a0

Browse files
authored
Added support for libavcodec 62 (#29)
1 parent 7ac613b commit 73ec2a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ffmpeg_decode.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@ int FFMpegDecoder::init(uint8_t* header, enum AVCodecID id, bool use_hw)
120120
}
121121

122122
decoder->sample_rate = aac_frequencies[sr_idx];
123-
decoder->profile = FF_PROFILE_AAC_LOW;
123+
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(62, 0, 0)
124+
decoder->profile = FF_PROFILE_AAC_LOW;
125+
#else
126+
decoder->profile = AV_PROFILE_AAC_LOW;
127+
#endif
124128

125129
const int channels = (header[1] >> 3) & 0xF;
126130
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59, 24, 100)

0 commit comments

Comments
 (0)