Skip to content

Commit

Permalink
Merge pull request #123 from jcdr428/Warning_on_video_format
Browse files Browse the repository at this point in the history
Warning if video is not V3 compliant
  • Loading branch information
justdan96 authored Jan 8, 2020
2 parents cd33519 + 551bcda commit 1fa62c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tsMuxer/tsPacket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2636,6 +2636,11 @@ void M2TSStreamInfo::blurayStreamParams(double fps, bool interlaced, int width,
else
*video_format = 5; // as 1280x720

if (width < 1080 && V3_flags)
LTRACE(LT_WARN, 2, "Warning: video height < 1080 is not standard for V3 Blu-ray.");
if (interlaced && V3_flags)
LTRACE(LT_WARN, 2, "Warning: interlaced video is not standard for V3 Blu-ray.");

if (fabs(fps-23.976) < 1e-4)
*frame_rate_index = 1;
else if (fabs(fps-24.0) < 1e-4)
Expand Down

0 comments on commit 1fa62c6

Please sign in to comment.