};
mediamuxer_h myMuxer = 0;
-media_format_h media_format = NULL;
+static media_format_h media_format = NULL;
media_format_h media_format_a = NULL;
-media_format_h media_format_t = NULL;
+static media_format_h media_format_t = NULL;
media_format_h input_fmt = NULL;
-int use_video = 1; /* 1 to test video with codec, 0 for audio */
-int use_encoder = 1;
media_format_mimetype_e mimetype;
-int width = DEFAULT_OUT_BUF_WIDTH;
-int height = DEFAULT_OUT_BUF_HEIGHT;
-float fps = 0;
-int target_bits = 0;
int samplerate = DEFAULT_SAMPPLERATE;
int channel = DEFAULT_CHANNEL;
unsigned char buf_adts[ADTS_HEADER_SIZE];
uint64_t pts = 0;
#ifdef USE_MEDIA_CODEC
+int use_video = 1; /* 1 to test video with codec, 0 for audio */
+int use_encoder = 1;
+int width = DEFAULT_OUT_BUF_WIDTH;
+int height = DEFAULT_OUT_BUF_HEIGHT;
+float fps = 0;
+int target_bits = 0;
static int bitrate = DEFAULT_BITRATE;
#endif
-int iseos_codec = 0;
-bool validate_with_codec = false;
+static bool validate_with_codec = false;
bool validate_multitrack = false;
-bool validate_with_demux = false;
-bool validate_with_pcm = false;
+static bool validate_with_demux = false;
+static bool validate_with_pcm = false;
char media_file[MAX_INPUT_SIZE];
char data_sink[MAX_INPUT_SIZE];
-bool have_mp4 = false;
+static bool have_mp4 = false;
bool have_vid_track = false;
bool have_aud_track = false;
bool have_text_track = false;
int track_index_aud = -1;
int track_index_aud2 = -1;
int track_index_text = -1;
-int g_menu_state = CURRENT_STATUS_MAINMENU;
+static int g_menu_state = CURRENT_STATUS_MAINMENU;
-int demuxer_index_vid = -1;
-int demuxer_index_aud = -1;
-bool is_video = false;
-bool is_audio = false;
+#ifdef USE_MEDIA_DEMUX
+static int demuxer_index_vid = -1;
+static int demuxer_index_aud = -1;
+static bool is_video = false;
+static bool is_audio = false;
+#endif
int demux_mp4();
int demux_audio(bool need_demux);