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-10-13 22:14:51 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2012-10-13 22:14:51 +0400
commitaf988e687bef4897fba430fd9addf4c56e15e622 (patch)
treec32caeab05911955bffda941e03418941cd22b3b /decoder/LAVVideo
parent841992284717eb1dfc8e7f055693f2aaaf60019e (diff)
Properly align buffer size to an even number of lines
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 63c1eddb..cb2489cc 100644
--- a/decoder/LAVVideo/subtitles/LAVSubtitleConsumer.cpp
+++ b/decoder/LAVVideo/subtitles/LAVSubtitleConsumer.cpp
@@ -285,7 +285,7 @@ STDMETHODIMP CLAVSubtitleConsumer::ProcessSubtitleBitmap(LAVPixelFormat pixFmt,
for (int plane = 0; plane < desc.planes; plane++) {
subStride[plane] = stride / desc.planeWidth[plane];
- const size_t size = subStride[plane] * FFALIGN(newSize.cy / desc.planeHeight[plane], 2);
+ const size_t size = subStride[plane] * FFALIGN(newSize.cy, 2) / desc.planeHeight[plane];
subData[plane] = (BYTE *)av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE);
}