diff options
author | Denis Fortin <fortin@nerim.net> | 2007-06-05 07:18:29 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2007-06-05 07:18:29 +0000 |
commit | f0edfda5782158d0485c68200ce0d41d06c93027 (patch) | |
tree | 323965af240b9148138716ed06dbaa5570bc93ef /libavcodec/msmpeg4.c | |
parent | ac3967c1ce6726c65747b83a8198b3416e85deda (diff) | |
download | ffmpeg-streaming-f0edfda5782158d0485c68200ce0d41d06c93027.zip ffmpeg-streaming-f0edfda5782158d0485c68200ce0d41d06c93027.tar.gz |
Rename code012() to ff_code012(), and remove static qualifier: paves the way
to vc1 encoder, as this function would be useful there.
patch by Denis Fortin % fortin A nerim P net %
Original thread:
date: Jun 4, 2007 9:23 PM
subject: Re: [FFmpeg-devel] [RFC] move wmv2.c to its own file
Originally committed as revision 9222 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/msmpeg4.c')
-rw-r--r-- | libavcodec/msmpeg4.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c index d98ad03..35d1330 100644 --- a/libavcodec/msmpeg4.c +++ b/libavcodec/msmpeg4.c @@ -162,7 +162,7 @@ static void init_mv_table(MVTable *tab) } } -static void code012(PutBitContext *pb, int n) +void ff_code012(PutBitContext *pb, int n) { if (n == 0) { put_bits(pb, 1, 0); @@ -348,8 +348,8 @@ void msmpeg4_encode_picture_header(MpegEncContext * s, int picture_number) if(s->msmpeg4_version>2){ if(!s->per_mb_rl_table){ - code012(&s->pb, s->rl_chroma_table_index); - code012(&s->pb, s->rl_table_index); + ff_code012(&s->pb, s->rl_chroma_table_index); + ff_code012(&s->pb, s->rl_table_index); } put_bits(&s->pb, 1, s->dc_table_index); @@ -362,7 +362,7 @@ void msmpeg4_encode_picture_header(MpegEncContext * s, int picture_number) if(s->msmpeg4_version>2){ if(!s->per_mb_rl_table) - code012(&s->pb, s->rl_table_index); + ff_code012(&s->pb, s->rl_table_index); put_bits(&s->pb, 1, s->dc_table_index); |