Mercurial > libavcodec.hg
comparison utils.c @ 685:44a1dab0205c libavcodec
fixing apiexample
| author | michaelni |
|---|---|
| date | Thu, 19 Sep 2002 18:24:52 +0000 |
| parents | b3869ffff47a |
| children | 83d2c9d50d7d |
comparison
equal
deleted
inserted
replaced
| 684:581678112a5d | 685:44a1dab0205c |
|---|---|
| 48 *p = format; | 48 *p = format; |
| 49 format->next = NULL; | 49 format->next = NULL; |
| 50 } | 50 } |
| 51 | 51 |
| 52 void avcodec_get_context_defaults(AVCodecContext *s){ | 52 void avcodec_get_context_defaults(AVCodecContext *s){ |
| 53 s->bit_rate= 800*1000; | |
| 54 s->bit_rate_tolerance= s->bit_rate*10; | |
| 53 s->qmin= 2; | 55 s->qmin= 2; |
| 54 s->qmax= 31; | 56 s->qmax= 31; |
| 55 s->rc_eq= "tex^qComp"; | 57 s->rc_eq= "tex^qComp"; |
| 56 s->qcompress= 0.5; | 58 s->qcompress= 0.5; |
| 59 s->max_qdiff= 3; | |
| 60 s->b_quant_factor=1.25; | |
| 61 s->b_quant_offset=1.25; | |
| 62 s->i_quant_factor=0.8; | |
| 63 s->i_quant_offset=0.0; | |
| 57 } | 64 } |
| 58 | 65 |
| 59 /** | 66 /** |
| 60 * allocates a AVCodecContext and set it to defaults. | 67 * allocates a AVCodecContext and set it to defaults. |
| 61 * this can be deallocated by simply calling free() | 68 * this can be deallocated by simply calling free() |
