Skip to content

Commit

Permalink
Probably fix tff material when rffmode is used
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed Feb 27, 2024
1 parent 73d21fa commit 073c037
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/ffms2-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- 5.0
- Fixed all issues with FFmpeg 6.1 which is now the minimum requirement
- Fixed av1 decoding
- Fixed TFF material when rffmode is used
- Added HDR10+ and DolbyVision metadata
- Fixed audio decoding that could otherwise get stuck in an infinite loop on certain files
- Fixed framerate in Avisynth when using VFR=>CFR mode
Expand Down
5 changes: 5 additions & 0 deletions src/avisynth/avssources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ AvisynthVideoSource::AvisynthVideoSource(const char *SourceFile, int Track, FFMS
}

if (RFFMode == 2) {
if (VP->TopFieldFirst) {
for (auto &iter : FieldList)
std::swap(iter.Top, iter.Bottom);
}

VI.num_frames = (VI.num_frames * 4) / 5;
VI.fps_denominator *= 5;
VI.fps_numerator *= 4;
Expand Down

0 comments on commit 073c037

Please sign in to comment.