mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-01 17:37:45 +00:00
switch to native time bases
Originally committed as revision 4168 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b7782b47c9
commit
c0df9d75bd
48 changed files with 314 additions and 384 deletions
|
@ -199,8 +199,8 @@ AVStream *add_video_stream(AVFormatContext *oc, int codec_id)
|
|||
c->width = 352;
|
||||
c->height = 288;
|
||||
/* frames per second */
|
||||
c->frame_rate = STREAM_FRAME_RATE;
|
||||
c->frame_rate_base = 1;
|
||||
c->time_base.den = STREAM_FRAME_RATE;
|
||||
c->time_base.num = 1;
|
||||
c->gop_size = 12; /* emit one intra frame every twelve frames at most */
|
||||
if (c->codec_id == CODEC_ID_MPEG2VIDEO) {
|
||||
/* just for testing, we also add B frames */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue