Mercurial > libavcodec.hg
comparison utils.c @ 8752:7fd1422a8703 libavcodec
Drop the deprecated function register_avcodec() at the next major
version bump.
author | stefano |
---|---|
date | Fri, 06 Feb 2009 23:54:50 +0000 |
parents | 2528b6a2b5d3 |
children | 153d7e5d5a5b |
comparison
equal
deleted
inserted
replaced
8751:303929f52007 | 8752:7fd1422a8703 |
---|---|
96 while (*p != NULL) p = &(*p)->next; | 96 while (*p != NULL) p = &(*p)->next; |
97 *p = codec; | 97 *p = codec; |
98 codec->next = NULL; | 98 codec->next = NULL; |
99 } | 99 } |
100 | 100 |
101 #if LIBAVCODEC_VERSION_MAJOR < 53 | |
101 void register_avcodec(AVCodec *codec) | 102 void register_avcodec(AVCodec *codec) |
102 { | 103 { |
103 avcodec_register(codec); | 104 avcodec_register(codec); |
104 } | 105 } |
106 #endif | |
105 | 107 |
106 void avcodec_set_dimensions(AVCodecContext *s, int width, int height){ | 108 void avcodec_set_dimensions(AVCodecContext *s, int width, int height){ |
107 s->coded_width = width; | 109 s->coded_width = width; |
108 s->coded_height= height; | 110 s->coded_height= height; |
109 s->width = -((-width )>>s->lowres); | 111 s->width = -((-width )>>s->lowres); |