Rename register_avcodec() as avcodec_register() and deprecate the old

function name.

Originally committed as revision 17026 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini
2009-02-06 23:46:15 +00:00
parent 21eff9ced7
commit 85662f4935
2 changed files with 13 additions and 3 deletions

View File

@ -88,7 +88,7 @@ AVCodec *av_codec_next(AVCodec *c){
else return first_avcodec;
}
void register_avcodec(AVCodec *codec)
void avcodec_register(AVCodec *codec)
{
AVCodec **p;
avcodec_init();
@ -98,6 +98,11 @@ void register_avcodec(AVCodec *codec)
codec->next = NULL;
}
void register_avcodec(AVCodec *codec)
{
avcodec_register(codec);
}
void avcodec_set_dimensions(AVCodecContext *s, int width, int height){
s->coded_width = width;
s->coded_height= height;