diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-10-13 22:14:51 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-10-13 22:14:51 +0400 |
commit | af988e687bef4897fba430fd9addf4c56e15e622 (patch) | |
tree | c32caeab05911955bffda941e03418941cd22b3b /decoder/LAVVideo | |
parent | 841992284717eb1dfc8e7f055693f2aaaf60019e (diff) |
Properly align buffer size to an even number of lines
Diffstat (limited to 'decoder/LAVVideo')
-rw-r--r-- | decoder/LAVVideo/subtitles/LAVSubtitleConsumer.cpp | 2 |
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); } |