Skip to content

Commit

Permalink
Always set TFF or BFF field order
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed Apr 3, 2024
1 parent 6489354 commit 04af436
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/synthshared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ void SetSynthFrameProperties(const std::unique_ptr<BestVideoFrame> &Src, const V
mapSetData("_PictType", &Src->PictType, 1, true);

// Set field information
int FieldBased = 0;
if (Src->InterlacedFrame)
FieldBased = (Src->TopFieldFirst ? 2 : 1);
mapSetInt("_FieldBased", FieldBased);
mapSetInt("_FieldBased", Src->TopFieldFirst ? 2 : 1);
mapSetInt("RepeatField", Src->RepeatPict);

// FIXME, use PTS difference between frames instead?
Expand Down

0 comments on commit 04af436

Please sign in to comment.