Skip to content

Commit

Permalink
[Bug] Incorrect values of VC-1 framerate (#429)
Browse files Browse the repository at this point in the history
Fixes #426
  • Loading branch information
jcdr428 committed Jun 9, 2021
1 parent ea879f3 commit 378377e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 378377e

Please sign in to comment.