diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-09-10 17:05:50 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-09-13 17:34:45 +0200 |
commit | 18adc1fd3bb739a240c59f87ec6837fdfa89d32e (patch) | |
tree | 45b4076aa5a644b481d427b9963ef8f3fe43d205 /avconv_filter.c | |
parent | 10de408738d28ab17aa5c1fdccd809b0637c12d5 (diff) | |
download | ffmpeg-18adc1fd3bb739a240c59f87ec6837fdfa89d32e.tar.gz |
avconv_filter: Use full named options
This introduces a slight timebase computation difference in zmbv-8bit
fate test. This is expected since the new options are double instead
of ints, and the additional precision skews the results in a non
meaningful way.
Diffstat (limited to 'avconv_filter.c')
-rw-r--r-- | avconv_filter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/avconv_filter.c b/avconv_filter.c index 18deb1f891..976d5214e4 100644 --- a/avconv_filter.c +++ b/avconv_filter.c @@ -496,8 +496,9 @@ static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter, sar = ist->st->sample_aspect_ratio.num ? ist->st->sample_aspect_ratio : ist->dec_ctx->sample_aspect_ratio; - snprintf(args, sizeof(args), "%d:%d:%d:%d:%d:%d:%d", ist->dec_ctx->width, - ist->dec_ctx->height, + snprintf(args, sizeof(args), + "width=%d:height=%d:pix_fmt=%d:time_base=%d/%d:sar=%d/%d", + ist->dec_ctx->width, ist->dec_ctx->height, ist->hwaccel_retrieve_data ? ist->hwaccel_retrieved_pix_fmt : ist->dec_ctx->pix_fmt, tb.num, tb.den, sar.num, sar.den); snprintf(name, sizeof(name), "graph %d input from stream %d:%d", fg->index, |