Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2012-11-02 20:03:44 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2012-11-02 20:03:44 +0400
commite3019a55dd19ea8ef80ddc3c6ccf366853e0ba13 (patch)
tree8e5abc7bb698995fba169b6914b5ecbfc9f5d532 /decoder/LAVVideo
parent5e546db8914664a5a0b6b60bd00f0689b0d81273 (diff)
Instruct swscale to process the full chroma information
Diffstat (limited to 'decoder/LAVVideo')
-rw-r--r--decoder/LAVVideo/subtitles/LAVSubtitleConsumer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVVideo/subtitles/LAVSubtitleConsumer.cpp b/decoder/LAVVideo/subtitles/LAVSubtitleConsumer.cpp
index 95c81d3a..c3232648 100644
--- a/decoder/LAVVideo/subtitles/LAVSubtitleConsumer.cpp
+++ b/decoder/LAVVideo/subtitles/LAVSubtitleConsumer.cpp
@@ -282,7 +282,7 @@ STDMETHODIMP CLAVSubtitleConsumer::ProcessSubtitleBitmap(LAVPixelFormat pixFmt,
subPosition.x = (LONG)av_rescale(subPosition.x, newSize.cx, subSize.cx);
subPosition.y = (LONG)av_rescale(subPosition.y, newSize.cy, subSize.cy);
- m_pSwsContext = sws_getCachedContext(m_pSwsContext, subSize.cx, subSize.cy, PIX_FMT_BGRA, newSize.cx, newSize.cy, avPixFmt, SWS_BILINEAR | SWS_PRINT_INFO, NULL, NULL, NULL);
+ m_pSwsContext = sws_getCachedContext(m_pSwsContext, subSize.cx, subSize.cy, PIX_FMT_BGRA, newSize.cx, newSize.cy, avPixFmt, SWS_BILINEAR|SWS_FULL_CHR_H_INP|SWS_PRINT_INFO, NULL, NULL, NULL);
const uint8_t *src[4] = { (const uint8_t *)rgbData, NULL, NULL, NULL };
const int srcStride[4] = { pitch * 4, 0, 0, 0 };