File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,13 @@ IOutputStream& OutputFile::addVideoStream( const VideoCodec& videoDesc )
67
67
_stream->codec ->width = videoDesc.getAVCodecContext ()->width ;
68
68
_stream->codec ->height = videoDesc.getAVCodecContext ()->height ;
69
69
_stream->codec ->bit_rate = videoDesc.getAVCodecContext ()->bit_rate ;
70
- _stream->codec ->ticks_per_frame = videoDesc.getAVCodecContext ()->ticks_per_frame ;
71
70
_stream->codec ->pix_fmt = videoDesc.getAVCodecContext ()->pix_fmt ;
72
71
_stream->codec ->profile = videoDesc.getAVCodecContext ()->profile ;
73
72
_stream->codec ->level = videoDesc.getAVCodecContext ()->level ;
74
73
75
- // need to set the time_base on the AVCodecContext and the AVStream...
74
+ // need to set the time_base on the AVCodecContext and the AVStream
75
+ // compensating the frame rate with the ticks_per_frame and keeping
76
+ // a coherent reading speed.
76
77
av_reduce (
77
78
&_stream->codec ->time_base .num ,
78
79
&_stream->codec ->time_base .den ,
You can’t perform that action at this time.
0 commit comments