Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Incorrect values of VC-1 framerate #429

Merged
merged 2 commits into from
Jun 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tsMuxer/vc1Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ if(psf) { //PsF, 6.1.13
m_fpsFieldBitVal = bitReader.getBitsCount();
nr = bitReader.getBits(8);
dr = bitReader.getBits(4);
if (nr && nr < 8 && dr && dr < 3)
if (nr > 0 && nr < 8 && dr > 0 && dr < 3)
{
time_base_num = ff_vc1_fps_dr[dr - 1];
time_base_den = ff_vc1_fps_nr[nr - 1] * 1000;
Expand Down
2 changes: 1 addition & 1 deletion tsMuxer/vc1Parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ enum Profile
};
//@}

const int ff_vc1_fps_nr[5] = {24, 25, 30, 50, 60};
const int ff_vc1_fps_nr[7] = {24, 25, 30, 50, 60, 48, 72};
const int ff_vc1_fps_dr[2] = {1000, 1001};

/*
Expand Down