Ico Doornekamp
edf54887e2
rtpdec_jpeg: fix low contrast image on low quality setting
...
The problem is that the argument 'q' is of the type uint8_t.
According to the JPEG standard, if 1 <= q <= 50, the scale factor
'S' should be 5000 / Q. Because the create_default_qtables() reuses
the variable 'q' to store the result of this calculation, for small
values of q < 19, q wil subsequently overflow and give wrong results
in the calculated quantization tables.
Instead, use a new variable 'S' (same name as in RFC2435) with the
proper range to store the result of the division.
Signed-off-by: Martin Storsjö <martin@martin.st>
2016-03-26 00:15:24 +02:00
..
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2015-11-12 04:39:14 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-22 11:30:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2015-06-28 10:16:40 +02:00
2015-09-13 17:34:45 +02:00
2016-02-23 17:01:58 +01:00
2016-03-05 08:45:01 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-23 19:31:23 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-18 15:35:30 +01:00
2016-03-24 10:34:19 +02:00
2015-07-27 15:24:59 +01:00
2016-03-24 10:34:19 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-24 10:34:19 +02:00
2016-03-24 10:34:19 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-24 10:33:59 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2015-06-12 17:02:49 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2015-09-29 14:33:00 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-24 10:34:19 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2015-07-27 15:24:59 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-24 10:34:19 +02:00
2016-02-23 17:01:58 +01:00
2016-03-24 10:34:19 +02:00
2015-10-14 14:35:34 +02:00
2016-03-24 10:34:19 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-24 13:56:46 -05:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2015-10-26 18:00:55 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-01-21 14:32:39 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-22 11:30:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-23 09:35:41 +01:00
2016-02-22 09:40:16 +01:00
2016-03-15 16:06:35 +01:00
2016-02-23 17:01:58 +01:00
2015-09-29 14:33:00 +02:00
2016-03-24 10:34:19 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-22 11:45:31 +01:00
2016-03-24 10:34:19 +02:00
2016-02-23 17:01:58 +01:00
2016-03-11 14:29:13 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-20 01:04:12 +01:00
2016-02-23 17:01:58 +01:00
2015-07-04 00:51:03 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2015-05-31 10:10:16 +03:00
2016-02-23 17:01:58 +01:00
2015-10-10 14:50:42 +02:00
2015-06-24 14:45:00 +01:00
2015-06-15 13:39:07 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-22 16:51:09 -04:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-22 11:48:30 +01:00
2016-02-22 11:48:30 +01:00
2015-10-30 10:03:58 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-22 11:35:57 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2015-11-30 10:58:46 -05:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2015-11-18 11:36:27 +01:00
2016-01-21 15:33:19 -05:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2015-07-29 22:09:16 +03:00
2016-03-24 10:34:19 +02:00
2016-03-25 14:53:37 +01:00
2016-03-24 19:17:23 +01:00
2016-02-22 11:45:31 +01:00
2016-03-24 10:34:19 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-26 00:15:24 +02:00
2016-02-23 17:01:58 +01:00
2015-10-26 18:00:55 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2015-09-15 09:35:44 +03:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-24 10:34:19 +02:00
2016-03-24 10:34:19 +02:00
2016-02-22 11:45:31 +01:00
2016-03-24 10:34:19 +02:00
2016-03-24 10:34:19 +02:00
2016-03-24 10:34:19 +02:00
2016-02-23 17:01:58 +01:00
2016-02-22 11:30:58 +01:00
2016-03-01 08:56:36 +02:00
2015-10-26 18:00:55 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-24 10:34:19 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-24 10:34:19 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-24 10:34:24 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-22 11:30:58 +01:00
2016-02-22 11:30:58 +01:00
2016-03-24 10:34:19 +02:00
2015-05-26 21:48:51 +03:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-22 11:30:58 +01:00
2016-03-24 10:34:29 +02:00
2016-03-24 10:34:19 +02:00
2016-03-23 19:31:36 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-03-24 10:33:59 +02:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00
2016-02-23 17:01:58 +01:00