diff options
author | Clément Bœsch <u@pkh.me> | 2017-03-29 14:16:33 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2017-03-29 14:16:33 +0200 |
commit | 4726bbb471566f7d2a0c883210870871a17fe2e3 (patch) | |
tree | 712f8dad9b0478fd4f03de42f8ad7ea3f669b883 | |
parent | e9bd45746511ab3a5803bc1b3490f4d682144289 (diff) | |
parent | d0a603a534a0ee4b255e5e72742428a7f7f42b83 (diff) | |
download | ffmpeg-4726bbb471566f7d2a0c883210870871a17fe2e3.tar.gz |
Merge commit 'd0a603a534a0ee4b255e5e72742428a7f7f42b83'
* commit 'd0a603a534a0ee4b255e5e72742428a7f7f42b83':
examples/encode_video: set the framerate
Merged-by: Clément Bœsch <u@pkh.me>
-rw-r--r-- | doc/examples/encode_video.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/encode_video.c b/doc/examples/encode_video.c index 265b529165..ba6f2bf0e8 100644 --- a/doc/examples/encode_video.c +++ b/doc/examples/encode_video.c @@ -75,7 +75,9 @@ int main(int argc, char **argv) c->width = 352; c->height = 288; /* frames per second */ - c->time_base = (AVRational){1,25}; + c->time_base = (AVRational){1, 25}; + c->framerate = (AVRational){25, 1}; + /* emit one intra frame every ten frames * check frame pict_type before passing frame * to encoder, if frame->pict_type is AV_PICTURE_TYPE_I |