]> git.sesse.net Git - vlc/commit
omxil: Keep the old frame height as plane size (nSliceHeight)
authorMartin Storsjö <martin@martin.st>
Tue, 8 May 2012 07:46:39 +0000 (10:46 +0300)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 12 May 2012 01:32:15 +0000 (03:32 +0200)
commit29988fbd1c2c6b3284f55b098c54a17fe00aa6cf
treedf1e388482aab4cc53ed6b80973550394ee09318
parent08879e4e4284cd5359578731701195e5d19c2f20
omxil: Keep the old frame height as plane size (nSliceHeight)

If the decoder returns a new size via the crop rect, but hasn't
explicitly indicated a plane height (via the nSliceHeight parameter),
keep the frame height as plane height instead.

Also do the same check for stride vs width. The decoders that had
problems that the nSliceHeight fixes do set nStride properly, so
that part won't be needed there, but might be needed on some
platform.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/omxil/omxil.c