Commit 4726bbb4 authored by Clément Bœsch's avatar Clément Bœsch

Merge commit 'd0a603a5'

* commit 'd0a603a5':
  examples/encode_video: set the framerate
Merged-by: 's avatarClément Bœsch <u@pkh.me>
parents e9bd4574 d0a603a5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment