diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2018-02-17 00:42:18 +0300 |
---|---|---|
committer | Dmitry Osipenko <digetx@gmail.com> | 2018-02-17 00:48:11 +0300 |
commit | 9b4f60481c1d827396eb959402654597c1c2dc9e (patch) | |
tree | 9a7d3e56364db27d623b007b2fd0b4bfe8a22b78 | |
parent | aec395e1ae2b78b1a6ed942c596e65337949ff8f (diff) |
Correct UV planes stride
This fixes decoding of odd-sized videos because HW require alignment
to 2 macroblocks for color planes stride (16 bytes).
-rw-r--r-- | src/surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/surface.c b/src/surface.c index 11b83f6..69c4404 100644 --- a/src/surface.c +++ b/src/surface.c @@ -146,7 +146,7 @@ int alloc_surface_data(tegra_surface *surf) pixbuf = host1x_pixelbuffer_create(dev->drm, width, ALIGN(height, 16), ALIGN(width, 16), - ALIGN(width / 2, 8), + ALIGN(width, 32) / 2, PIX_BUF_FMT_YV12, PIX_BUF_LAYOUT_LINEAR); if (pixbuf == NULL) { |