Skip to content

Commit

Permalink
485432: Fix libavcodec version major typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangzhai committed Apr 13, 2024
1 parent 712ef4a commit 071535a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ bool K3bFFMpegFile::open()
}

d->sampleFormat = d->codecContext->sample_fmt;
#if LIBAVCODEC_VERSION_MAJOR < 70
#if LIBAVCODEC_VERSION_MAJOR < 61
d->isSpacious = ::av_sample_fmt_is_planar(d->sampleFormat) &&
d->codecContext->channels > 1;
#else
Expand Down Expand Up @@ -190,7 +190,7 @@ int K3bFFMpegFile::sampleRate() const

int K3bFFMpegFile::channels() const
{
#if LIBAVCODEC_VERSION_MAJOR < 70
#if LIBAVCODEC_VERSION_MAJOR < 61
return d->codecContext->channels;
#else
#pragma Unimplemented
Expand Down

0 comments on commit 071535a

Please sign in to comment.