ffmpeg/libavformat
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
..
2015-11-12 04:39:14 +01:00
2016-02-22 11:30:58 +01:00
2015-06-28 10:16:40 +02:00
2015-09-13 17:34:45 +02:00
2016-03-05 08:45:01 +01:00
2015-06-12 17:02:49 +01:00
2014-03-10 18:02:36 +01:00
2013-10-31 20:20:24 +01:00
2016-02-22 11:30:58 +01:00
2014-09-25 01:58:51 -07:00
2015-03-21 23:18:15 +01:00
2014-08-26 03:43:13 +02:00
2014-08-05 11:30:50 +02:00
2015-07-04 00:51:03 +02:00
2014-08-17 16:11:16 +02:00
2014-08-17 16:11:02 +02:00
2015-05-31 10:10:16 +03:00
2015-06-15 13:39:07 +02:00
2014-12-18 23:27:07 +01:00
2012-10-25 14:05:13 +02:00
2015-11-30 10:58:46 -05:00
2016-01-21 15:33:19 -05:00
2012-08-07 16:00:24 +02:00
2012-07-23 16:32:07 +03:00
2016-03-25 14:53:37 +01:00
2016-03-24 19:17:23 +01:00
2014-12-18 23:11:37 +02:00
2012-07-10 22:00:28 +03:00
2016-02-22 11:30:58 +01:00
2016-03-01 08:56:36 +02:00
2016-02-22 11:30:58 +01:00
2016-02-22 11:30:58 +01:00
2016-02-22 11:30:58 +01:00
2016-03-23 19:31:36 +01:00