X-Git-Url: https://git.libav.org/?p=libav.git;a=blobdiff_plain;f=ffplay.c;h=0194db6c197c4fee46aa114b2d7e4691bfd7bbc6;hp=6d48684703c8c522f86296d9821d6d2b207b4481;hb=2b3da32f74ae03a08bf0d399eaf64917eb4f01a3;hpb=b41ec742eaea6fc22afca11ec55e302edbadc193 diff --git a/ffplay.c b/ffplay.c index 6d48684703..0194db6c19 100644 --- a/ffplay.c +++ b/ffplay.c @@ -260,6 +260,8 @@ static int error_concealment = 3; static int decoder_reorder_pts= -1; static int autoexit; static int framedrop=1; + +static int rdftspeed=20; #if CONFIG_AVFILTER static char *vfilters = NULL; #endif @@ -1021,7 +1023,7 @@ static int refresh_thread(void *opaque) is->refresh=1; SDL_PushEvent(&event); } - usleep(5000); //FIXME ideally we should wait the correct time but SDLs event passing is so slow it would be silly + usleep(is->audio_st && is->show_audio ? rdftspeed*1000 : 5000); //FIXME ideally we should wait the correct time but SDLs event passing is so slow it would be silly } return 0; } @@ -2959,6 +2961,7 @@ static const OptionDef options[] = { #if CONFIG_AVFILTER { "vfilters", OPT_STRING | HAS_ARG, {(void*)&vfilters}, "video filters", "filter list" }, #endif + { "rdftspeed", OPT_INT | HAS_ARG| OPT_AUDIO | OPT_EXPERT, {(void*)&rdftspeed}, "rdft speed", "msecs" }, { "default", OPT_FUNC2 | HAS_ARG | OPT_AUDIO | OPT_VIDEO | OPT_EXPERT, {(void*)opt_default}, "generic catch all option", "" }, { NULL, }, };