comparison apiexample.c @ 2637:ef44d24680d1 libavcodec

switch to native time bases
author michael
date Sat, 30 Apr 2005 21:43:59 +0000
parents 9a7770ebed14
children dfcfaeed1679
comparison
equal deleted inserted replaced
2636:2344c6713011 2637:ef44d24680d1
193 c->bit_rate = 400000; 193 c->bit_rate = 400000;
194 /* resolution must be a multiple of two */ 194 /* resolution must be a multiple of two */
195 c->width = 352; 195 c->width = 352;
196 c->height = 288; 196 c->height = 288;
197 /* frames per second */ 197 /* frames per second */
198 c->frame_rate = 25; 198 c->time_base= (AVRational){1,25};
199 c->frame_rate_base= 1;
200 c->gop_size = 10; /* emit one intra frame every ten frames */ 199 c->gop_size = 10; /* emit one intra frame every ten frames */
201 c->max_b_frames=1; 200 c->max_b_frames=1;
202 201
203 /* open it */ 202 /* open it */
204 if (avcodec_open(c, codec) < 0) { 203 if (avcodec_open(c, codec) < 0) {