ffmpeg: Fix warning about setting stream timebase
Spotted by jackburton, doesn't fix #13407.
This commit is contained in:
parent
b1f1332ebb
commit
5ba361f8bf
@ -142,6 +142,10 @@ AVFormatWriter::StreamCookie::Init(media_format* format,
|
|||||||
// frame rate
|
// frame rate
|
||||||
fStream->codec->time_base.den = (int)format->u.raw_video.field_rate;
|
fStream->codec->time_base.den = (int)format->u.raw_video.field_rate;
|
||||||
fStream->codec->time_base.num = 1;
|
fStream->codec->time_base.num = 1;
|
||||||
|
|
||||||
|
fStream->time_base.den = (int)format->u.raw_video.field_rate;
|
||||||
|
fStream->time_base.num = 1;
|
||||||
|
|
||||||
// video size
|
// video size
|
||||||
fStream->codec->width = format->u.raw_video.display.line_width;
|
fStream->codec->width = format->u.raw_video.display.line_width;
|
||||||
fStream->codec->height = format->u.raw_video.display.line_count;
|
fStream->codec->height = format->u.raw_video.display.line_count;
|
||||||
|
Loading…
Reference in New Issue
Block a user