Video Encode: do not set the frame_number
Fixes a deprecation warning, and it is supposed to be set by ffmpeg anyway.
This commit is contained in:
@@ -1181,7 +1181,6 @@ namespace utils
|
|||||||
{
|
{
|
||||||
av.video.context->codec_id = av.format_context->oformat->video_codec;
|
av.video.context->codec_id = av.format_context->oformat->video_codec;
|
||||||
av.video.context->codec_type = AVMEDIA_TYPE_VIDEO;
|
av.video.context->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||||
av.video.context->frame_number = 0;
|
|
||||||
av.video.context->bit_rate = m_video_bitrate_bps;
|
av.video.context->bit_rate = m_video_bitrate_bps;
|
||||||
av.video.context->width = static_cast<int>(m_out_format.width);
|
av.video.context->width = static_cast<int>(m_out_format.width);
|
||||||
av.video.context->height = static_cast<int>(m_out_format.height);
|
av.video.context->height = static_cast<int>(m_out_format.height);
|
||||||
|
|||||||
Reference in New Issue
Block a user