mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-09 02:30:45 +08:00
fftools/ffmpeg: cosmetics
Reindent after previous commit and break/split some lines as appropriate.
This commit is contained in:
@@ -688,18 +688,17 @@ static double adjust_frame_pts_to_encoder_tb(OutputFile *of, OutputStream *ost,
|
|||||||
if (frame->pts == AV_NOPTS_VALUE)
|
if (frame->pts == AV_NOPTS_VALUE)
|
||||||
goto early_exit;
|
goto early_exit;
|
||||||
|
|
||||||
tb.den <<= extra_bits;
|
tb.den <<= extra_bits;
|
||||||
float_pts =
|
float_pts = av_rescale_q(frame->pts, filter_tb, tb) -
|
||||||
av_rescale_q(frame->pts, filter_tb, tb) -
|
av_rescale_q(start_time, AV_TIME_BASE_Q, tb);
|
||||||
av_rescale_q(start_time, AV_TIME_BASE_Q, tb);
|
float_pts /= 1 << extra_bits;
|
||||||
float_pts /= 1 << extra_bits;
|
// avoid exact midoints to reduce the chance of rounding differences, this
|
||||||
// avoid exact midoints to reduce the chance of rounding differences, this can be removed in case the fps code is changed to work with integers
|
// can be removed in case the fps code is changed to work with integers
|
||||||
float_pts += FFSIGN(float_pts) * 1.0 / (1<<17);
|
float_pts += FFSIGN(float_pts) * 1.0 / (1<<17);
|
||||||
|
|
||||||
frame->pts =
|
frame->pts = av_rescale_q(frame->pts, filter_tb, enc->time_base) -
|
||||||
av_rescale_q(frame->pts, filter_tb, enc->time_base) -
|
av_rescale_q(start_time, AV_TIME_BASE_Q, enc->time_base);
|
||||||
av_rescale_q(start_time, AV_TIME_BASE_Q, enc->time_base);
|
frame->time_base = enc->time_base;
|
||||||
frame->time_base = enc->time_base;
|
|
||||||
|
|
||||||
early_exit:
|
early_exit:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user