diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-01-11 02:37:19 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-01-11 02:37:19 +0400 |
commit | b8da64ea990a0bfda898fc31e45e757341504c9a (patch) | |
tree | 968a8fe7e3a72b3f1c0b22e36917589d30e4200b /decoder | |
parent | 8f820f9fc4326dcbe4c4debf0f72f516a84f3a65 (diff) |
Update yadif init syntax to new named options to avoid a bug in ffmpegs parsing of the old syntax.
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/LAVVideo/Filtering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVVideo/Filtering.cpp b/decoder/LAVVideo/Filtering.cpp index fc0875a2..93796fea 100644 --- a/decoder/LAVVideo/Filtering.cpp +++ b/decoder/LAVVideo/Filtering.cpp @@ -98,7 +98,7 @@ HRESULT CLAVVideo::Filter(LAVFrame *pFrame, HRESULT (CLAVVideo::*deliverFunc)(LA inputs->pad_idx = 0; inputs->next = NULL; - _snprintf_s(args, sizeof(args), "yadif=%d:-1:1", (m_settings.SWDeintOutput == DeintOutput_FramePerField)); + _snprintf_s(args, sizeof(args), "yadif=mode=%s:parity=auto:deint=interlaced", (m_settings.SWDeintOutput == DeintOutput_FramePerField) ? "send_field" : "send_frame"); if ((ret = avfilter_graph_parse(m_pFilterGraph, args, &inputs, &outputs, NULL)) < 0) { DbgLog((LOG_TRACE, 10, L"::Filter()(init) Parsing the graph failed with code %d", ret)); avfilter_graph_free(&m_pFilterGraph); |