[FFmpeg-devel] [PATCH]lavc/pnmdec: Fix 16bit decoding
Michael Niedermayer
michael at niedermayer.cc
Sat Dec 14 00:06:22 EET 2019
On Fri, Dec 13, 2019 at 07:13:20PM +0100, Carl Eugen Hoyos wrote:
> Hi!
>
> Attached patch fixes decoding a sample provided on irc.
>
> Please comment, Carl Eugen
> pnmdec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> b5422d22058919ba63c80c3070660ab1f0908069 0001-lavc-pnmdec-Fix-16bit-decoding.patch
> From 9bf070aab1a88fb37db3c9322665edee9f90919f Mon Sep 17 00:00:00 2001
> From: Carl Eugen Hoyos <ceffmpeg at gmail.com>
> Date: Fri, 13 Dec 2019 19:10:15 +0100
> Subject: [PATCH] lavc/pnmdec: Fix 16bit decoding.
>
> Regression since cdb5479c
> Reported by irc user tTh from Mixart-Myrys
> ---
> libavcodec/pnmdec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c
> index 958c5e43b0..dbcaef3884 100644
> --- a/libavcodec/pnmdec.c
> +++ b/libavcodec/pnmdec.c
> @@ -143,7 +143,7 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data,
> v = (*s->bytestream++)&1;
> } else {
> /* read a sequence of digits */
> - for (k = 0; k < 5 && c <= 9; k += 1) {
> + for (k = 0; k < 6 && c <= 9; k += 1) {
should be ok
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20191213/5fe96b87/attachment.sig>
More information about the ffmpeg-devel
mailing list