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:31:44 +0000 (22:31 +0200)
commitc3c8857263d4e607b3ae6323f87f484c76b5e53f
tree7ee4a37c3f3bebee031bd583f482d7d166920f86
parent4fbdac00e94e6a5ca8c9d2b05f93503f6bbf8fc3
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>
(cherry picked from commit 0e8bfd3c934768f9812dd20d71fa4709de54186d)

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