diff msmpeg4.c @ 5098:997c368e6433 libavcodec

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
author gpoirier
date Tue, 05 Jun 2007 07:18:29 +0000
parents 9fb6d2125500
children 4dbe6578f811
line wrap: on
line diff
--- a/msmpeg4.c	Mon Jun 04 23:07:27 2007 +0000
+++ b/msmpeg4.c	Tue Jun 05 07:18:29 2007 +0000
@@ -162,7 +162,7 @@
     }
 }
 
-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 @@
 
         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 @@
 
         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);