avcodec/utils: Fix 'ISO C90 forbids mixed declarations and code'
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 3 Mar 2016 20:19:32 +0000 (21:19 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 3 Mar 2016 20:19:54 +0000 (21:19 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c

index f435588..b993899 100644 (file)
@@ -3682,9 +3682,9 @@ AVCPBProperties *ff_add_cpb_side_data(AVCodecContext *avctx)
 
 #ifdef TEST
 int main(void){
-    avcodec_register_all();
     AVCodec *codec = NULL;
     int ret = 0;
+    avcodec_register_all();
 
     while (codec = av_codec_next(codec)) {
         if (av_codec_is_encoder(codec)) {