aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/wmv2.c
diff options
context:
space:
mode:
authorDenis Fortin2007-06-05 07:18:29 +0000
committerGuillaume Poirier2007-06-05 07:18:29 +0000
commitf0edfda5782158d0485c68200ce0d41d06c93027 (patch)
tree323965af240b9148138716ed06dbaa5570bc93ef /libavcodec/wmv2.c
parentac3967c1ce6726c65747b83a8198b3416e85deda (diff)
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/wmv2.c')
-rw-r--r--libavcodec/wmv2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/wmv2.c b/libavcodec/wmv2.c
index 255a37a26d..f2f055c9f3 100644
--- a/libavcodec/wmv2.c
+++ b/libavcodec/wmv2.c
@@ -144,8 +144,8 @@ int ff_wmv2_encode_picture_header(MpegEncContext * s, int picture_number)
if(w->per_mb_rl_bit) put_bits(&s->pb, 1, s->per_mb_rl_table);
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);
@@ -156,7 +156,7 @@ int ff_wmv2_encode_picture_header(MpegEncContext * s, int picture_number)
put_bits(&s->pb, 2, SKIP_TYPE_NONE);
- code012(&s->pb, cbp_index=0);
+ ff_code012(&s->pb, cbp_index=0);
if(s->qscale <= 10){
int map[3]= {0,2,1};
w->cbp_table_index= map[cbp_index];
@@ -173,14 +173,14 @@ int ff_wmv2_encode_picture_header(MpegEncContext * s, int picture_number)
if(w->abt_flag){
put_bits(&s->pb, 1, w->per_mb_abt^1);
if(!w->per_mb_abt){
- code012(&s->pb, w->abt_type);
+ ff_code012(&s->pb, w->abt_type);
}
}
if(w->per_mb_rl_bit) put_bits(&s->pb, 1, s->per_mb_rl_table);
if(!s->per_mb_rl_table){
- code012(&s->pb, s->rl_table_index);
+ ff_code012(&s->pb, s->rl_table_index);
s->rl_chroma_table_index = s->rl_table_index;
}
put_bits(&s->pb, 1, s->dc_table_index);