diff options
Diffstat (limited to 'contrib/ffmpeg/libavcodec/cabac.c')
-rw-r--r-- | contrib/ffmpeg/libavcodec/cabac.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/ffmpeg/libavcodec/cabac.c b/contrib/ffmpeg/libavcodec/cabac.c index c6da6292a..fc17bb6ac 100644 --- a/contrib/ffmpeg/libavcodec/cabac.c +++ b/contrib/ffmpeg/libavcodec/cabac.c @@ -17,7 +17,6 @@ * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * */ /** @@ -179,12 +178,14 @@ void ff_init_cabac_states(CABACContext *c){ } } -#if 0 //selftest +#ifdef TEST +#undef random #define SIZE 10240 #include "avcodec.h" +#include "cabac.h" -int main(){ +int main(void){ CABACContext c; uint8_t b[9*SIZE]; uint8_t r[9*SIZE]; @@ -192,7 +193,7 @@ int main(){ uint8_t state[10]= {0}; ff_init_cabac_encoder(&c, b, SIZE); - ff_init_cabac_states(&c, ff_h264_lps_range, ff_h264_mps_state, ff_h264_lps_state, 64); + ff_init_cabac_states(&c); for(i=0; i<SIZE; i++){ r[i]= random()%7; @@ -262,4 +263,4 @@ STOP_TIMER("get_cabac_ueg") return 0; } -#endif +#endif /* TEST */ |