aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-03-13 22:51:11 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-03-13 22:51:11 +0000
commit3e207bb1bd822ee1bce3e2de4c784702e0b6e24a (patch)
treedbe316f70e5983d2b93186ce46ad1a9f5ccce4d6 /libavcodec
parent2d2020b8251c1f359cf79835523e27cc52ffa4ba (diff)
downloadffmpeg-3e207bb1bd822ee1bce3e2de4c784702e0b6e24a.tar.gz
remove silly static int done protecting the initalization of 32 elements to 1
Originally committed as revision 8391 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 462f323f90..416f4d846f 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -625,13 +625,10 @@ void MPV_decode_defaults(MpegEncContext *s){
#ifdef CONFIG_ENCODERS
static void MPV_encode_defaults(MpegEncContext *s){
- static int done=0;
-
MPV_common_defaults(s);
- if(!done){
+ {
int i;
- done=1;
for(i=-16; i<16; i++){
default_fcode_tab[i + MAX_MV]= 1;