ffmpeg: Fix warning about setting stream timebase

Spotted by jackburton, doesn't fix #13407.
This commit is contained in:
Barrett17 2018-04-06 02:28:07 +02:00
parent b1f1332ebb
commit 5ba361f8bf

View File

@ -142,6 +142,10 @@ AVFormatWriter::StreamCookie::Init(media_format* format,
// frame rate
fStream->codec->time_base.den = (int)format->u.raw_video.field_rate;
fStream->codec->time_base.num = 1;
fStream->time_base.den = (int)format->u.raw_video.field_rate;
fStream->time_base.num = 1;
// video size
fStream->codec->width = format->u.raw_video.display.line_width;
fStream->codec->height = format->u.raw_video.display.line_count;