X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffplay.c;h=428c78e747c19e3c2ad62e460c6459b28d1ff7e5;hb=fd165ace7b2791af75c74652364d47957d4ea932;hp=7d47bcdc2c9cc06681aa71dbce81811186bb961c;hpb=ca95d1b32df1a059be48404a3f1f598725a64d03;p=ffmpeg diff --git a/ffplay.c b/ffplay.c index 7d47bcdc2c9..428c78e747c 100644 --- a/ffplay.c +++ b/ffplay.c @@ -157,7 +157,7 @@ typedef struct VideoState { int force_refresh; int paused; int last_paused; - int que_attachments_req; + int queue_attachments_req; int seek_req; int seek_flags; int64_t seek_pos; @@ -1310,7 +1310,7 @@ retry: is->frame_last_dropped_pts = AV_NOPTS_VALUE; } SDL_UnlockMutex(is->pictq_mutex); - // nothing to do, no picture to display in the que + // nothing to do, no picture to display in the queue } else { double last_duration, duration, delay; /* dequeue the picture */ @@ -1643,7 +1643,7 @@ static int get_video_frame(VideoState *is, AVFrame *frame, int64_t *pts, AVPacke avcodec_flush_buffers(is->video_st->codec); SDL_LockMutex(is->pictq_mutex); - // Make sure there are no long delay timers (ideally we should just flush the que but thats harder) + // Make sure there are no long delay timers (ideally we should just flush the queue but that's harder) for (i = 0; i < VIDEO_PICTURE_QUEUE_SIZE; i++) { is->pictq[i].skip = 1; } @@ -1753,6 +1753,7 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c if (!buffersink_params) return AVERROR(ENOMEM); + av_opt_get_int(sws_opts, "sws_flags", 0, &sws_flags); snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%"PRId64, sws_flags); graph->scale_sws_opts = av_strdup(sws_flags_str); @@ -2707,9 +2708,9 @@ static int read_thread(void *arg) is->seek_req = 0; eof = 0; } - if (is->que_attachments_req) { + if (is->queue_attachments_req) { avformat_queue_attached_pictures(ic); - is->que_attachments_req = 0; + is->queue_attachments_req = 0; } /* if the queue are full, no need to read more */ @@ -2901,7 +2902,7 @@ static void stream_cycle_channel(VideoState *is, int codec_type) stream_component_close(is, old_index); stream_component_open(is, stream_index); if (codec_type == AVMEDIA_TYPE_VIDEO) - is->que_attachments_req = 1; + is->queue_attachments_req = 1; } @@ -3241,7 +3242,7 @@ static const OptionDef options[] = { { "infbuf", OPT_BOOL | OPT_EXPERT, { &infinite_buffer }, "don't limit the input buffer size (useful with realtime streams)", "" }, { "window_title", OPT_STRING | HAS_ARG, { &window_title }, "set window title", "window title" }, #if CONFIG_AVFILTER - { "vf", OPT_STRING | HAS_ARG, { &vfilters }, "video filters", "filter list" }, + { "vf", OPT_STRING | HAS_ARG, { &vfilters }, "set video filters", "filter_graph" }, #endif { "rdftspeed", OPT_INT | HAS_ARG| OPT_AUDIO | OPT_EXPERT, { &rdftspeed }, "rdft speed", "msecs" }, { "showmode", HAS_ARG, { .func_arg = opt_show_mode}, "select show mode (0 = video, 1 = waves, 2 = RDFT)", "mode" },