avcodec/tiffenc: properly compute packet size
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Sun, 12 Oct 2014 19:10:54 +0000 (21:10 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 22 Oct 2014 20:28:02 +0000 (22:28 +0200)
commit0e8bfd3c934768f9812dd20d71fa4709de54186d
tree443073fb4b74e324cabeb8393ecb36ca9a370f02
parent9bdb7a6c1a8bcc36cf276107fb2e6fca12687d40
avcodec/tiffenc: properly compute packet size

The bytes per row is a better indication of it.

Helps resolving ticket #3874 by fixing ffmpeg's encoder and transforming
the issue in a issue with non-compliant decoders. ffmpeg's one is ok,
but unfortunately, many others aren't handling correctly unusual chroma
samplings.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/tiffenc.c