projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
e9bd457
)
Merge commit 'd0a603a534a0ee4b255e5e72742428a7f7f42b83'
author
Clément Bœsch
<u@pkh.me>
Wed, 29 Mar 2017 12:16:33 +0000
(14:16 +0200)
committer
Clément Bœsch
<u@pkh.me>
Wed, 29 Mar 2017 12:16:33 +0000
(14:16 +0200)
* commit '
d0a603a534a0ee4b255e5e72742428a7f7f42b83
':
examples/encode_video: set the framerate
Merged-by: Clément Bœsch <u@pkh.me>
doc/examples/encode_video.c
patch
|
blob
|
history
diff --git
a/doc/examples/encode_video.c
b/doc/examples/encode_video.c
index
265b529
..
ba6f2bf
100644
(file)
--- 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