File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -73,11 +73,13 @@ void OutputFile::addVideoStream( const VideoDesc& videoDesc )
73
73
stream->codec ->height = videoDesc.getCodecContext ()->height ;
74
74
stream->codec ->bit_rate = videoDesc.getCodecContext ()->bit_rate ;
75
75
stream->codec ->time_base = videoDesc.getCodecContext ()->time_base ;
76
+ stream->codec ->ticks_per_frame = videoDesc.getCodecContext ()->ticks_per_frame ;
76
77
stream->codec ->pix_fmt = videoDesc.getCodecContext ()->pix_fmt ;
77
78
stream->codec ->profile = videoDesc.getCodecContext ()->profile ;
78
79
stream->codec ->level = videoDesc.getCodecContext ()->level ;
79
80
80
- stream->time_base = stream->codec ->time_base ;
81
+ stream->time_base .num = stream->codec ->time_base .num ;
82
+ stream->time_base .den = stream->codec ->time_base .den / stream->codec ->ticks_per_frame ;
81
83
}
82
84
83
85
void OutputFile::addAudioStream ( const AudioDesc& audioDesc )
You can’t perform that action at this time.
0 commit comments