Skip to content

Commit

Permalink
Fix extractVersion in FFmpeg.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Jun 11, 2024
1 parent 0a2e8f7 commit 67e766f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nav_backend_ffmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ inline double derationalize(const AVRational &r, double dv0 = 0.0)

constexpr std::tuple<unsigned int, unsigned int> extractVersion(unsigned int ver)
{
return std::make_tuple(ver >> 16, (ver >> 16) & 0xFF);
return std::make_tuple(ver >> 16, (ver >> 8) & 0xFF);
}

template<unsigned int ver>
Expand Down

0 comments on commit 67e766f

Please sign in to comment.