Skip to content

Commit

Permalink
X264: Change a hardcoded frame duration to a calculated frame duration
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Toth committed May 24, 2018
1 parent 1ca2d73 commit 1feb64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoders/video/avc/x264.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ printf("Malloc failed\n");
* is disconnected, suggestedint a BM firmware bug.
* We'll use the audio clock regardless, for both audio and video compressors.
*/
int64_t new_dts = avfm->audio_pts + 24299700 - abs(coded_frame->real_dts - coded_frame->real_pts) + (2 * 450450);
int64_t new_dts = avfm->audio_pts + 24299700 - abs(coded_frame->real_dts - coded_frame->real_pts) + (2 * frame_duration);

/* We need to userstand, for this temporal frame, how much it varies from the dts. */
int64_t pts_diff = coded_frame->real_dts - coded_frame->real_pts;
Expand Down

0 comments on commit 1feb64e

Please sign in to comment.