AVFrame*             frame;
 };
 
+typedef struct {
+       AVFormatContext*  fmt_ctx;
+       AVCodecContext*   vcodec_ctx;
+       AVCodecContext*   acodec_ctx;
+
+       AVAudioFifo*      afifo;
+
+       int               vidx;
+       int               aidx;
+
+       int               nb_samples;
+
+       AVFrame*          vframe;
+       AVFrame*          aframe;
+       AVPacket*         vpkt;
+       AVPacket*         apkt;
+
+} simp_ffmpeg_t;
+
 struct  simp_avio_s
 {
        scf_list_t           list;
 
 
 #include"simp.h"
 
-typedef struct {
-       AVFormatContext*  fmt_ctx;
-       AVCodecContext*   vcodec_ctx;
-       AVCodecContext*   acodec_ctx;
-
-       AVAudioFifo*      afifo;
-
-       int               vidx;
-       int               aidx;
-
-       int               nb_samples;
-
-       AVFrame*          vframe;
-       AVFrame*          aframe;
-       AVPacket*         vpkt;
-       AVPacket*         apkt;
-
-} simp_ffmpeg_t;
 
 #endif