Mercurial > libavcodec.hg
changeset 8324:343f0476fd1d libavcodec
Use a more explicit "codec" rather than "format" as the parameter of
register_avcodec().
author | stefano |
---|---|
date | Sun, 14 Dec 2008 19:36:38 +0000 |
parents | fa328586b9ce |
children | 0b905a126bc9 |
files | avcodec.h utils.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/avcodec.h Sun Dec 14 16:41:51 2008 +0000 +++ b/avcodec.h Sun Dec 14 19:36:38 2008 +0000 @@ -2563,7 +2563,7 @@ */ void avcodec_init(void); -void register_avcodec(AVCodec *format); +void register_avcodec(AVCodec *codec); /** * Finds a registered encoder with a matching codec ID.
--- a/utils.c Sun Dec 14 16:41:51 2008 +0000 +++ b/utils.c Sun Dec 14 19:36:38 2008 +0000 @@ -87,13 +87,13 @@ else return first_avcodec; } -void register_avcodec(AVCodec *format) +void register_avcodec(AVCodec *codec) { AVCodec **p; p = &first_avcodec; while (*p != NULL) p = &(*p)->next; - *p = format; - format->next = NULL; + *p = codec; + codec->next = NULL; } void avcodec_set_dimensions(AVCodecContext *s, int width, int height){