ffmpeg/libavcodec
Michael Niedermayer aa264da5bf adpcmenc: Calculate the IMA_QT predictor without overflow
Previously, the value given to put_bits was 10 bits long for positive
predictors, even though 9 bits were to be written. The extra bit could
in some cases overwrite existing bits in the bitstream writer cache.

This fixes a failed assert in put_bits.h, when running a version
built with -DDEBUG.

The fate test result gets slightly improved, thanks to getting rid
of the overwritten bits in the bitstream writer cache.

Signed-off-by: Martin Storsjö <martin@martin.st>
2012-09-04 15:30:58 +03:00
..
2012-04-21 18:56:19 +01:00
2012-03-26 13:00:10 +02:00
2012-03-26 13:00:10 +02:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-02-23 19:56:55 +01:00
2012-06-08 13:14:38 -04:00
2012-05-05 22:04:21 +01:00
2012-05-05 22:04:21 +01:00
2012-05-05 22:04:21 +01:00
2012-05-05 22:04:21 +01:00
2012-05-05 22:04:21 +01:00
2011-11-25 13:19:54 +00:00
2011-12-02 17:40:40 -05:00
2011-09-29 16:54:00 -04:00
2011-09-13 10:59:47 -04:00
2012-08-15 22:32:06 +03:00
2011-12-02 17:40:40 -05:00
2012-08-31 07:37:16 +02:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-31 07:37:16 +02:00
2011-07-27 14:39:56 +01:00
2012-08-26 14:03:56 +02:00
2012-08-15 22:32:06 +03:00
2011-05-21 13:48:10 +02:00
2011-05-21 13:48:10 +02:00
2012-08-15 22:32:06 +03:00
2012-08-31 07:37:16 +02:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2011-05-21 13:48:10 +02:00
2011-07-21 18:44:40 +01:00
2012-08-15 22:32:06 +03:00
2012-08-07 16:00:24 +02:00
2012-08-26 14:03:57 +02:00
2012-08-26 14:03:57 +02:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2011-03-31 12:01:27 +01:00
2011-03-31 12:01:27 +01:00
2012-01-27 17:19:09 -08:00
2012-07-05 21:57:51 +01:00
2011-05-21 13:48:10 +02:00
2012-08-15 22:32:06 +03:00
2012-08-30 18:21:12 +02:00
2012-01-11 08:56:24 -05:00
2012-01-11 08:56:24 -05:00
2012-01-11 08:56:24 -05:00
2012-01-27 17:19:09 -08:00
2012-08-31 07:37:16 +02:00
2011-12-03 08:24:27 -08:00
2012-08-15 22:32:06 +03:00
2012-08-28 17:43:25 +02:00
2012-08-28 17:43:25 +02:00
2012-08-28 17:43:25 +02:00
2012-08-13 17:59:21 +01:00
2011-12-28 15:22:18 +01:00
2011-12-28 15:22:18 +01:00
2012-08-15 22:32:06 +03:00
2012-04-21 18:56:19 +01:00
2011-05-21 13:48:10 +02:00
2012-08-15 22:32:06 +03:00
2012-08-09 10:50:27 +02:00
2012-03-28 07:06:47 -07:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2011-07-18 18:48:13 +01:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-09-03 11:33:49 +02:00
2011-03-31 12:01:27 +01:00
2011-03-31 12:01:27 +01:00
2012-08-22 17:44:43 +02:00
2011-12-02 17:40:40 -05:00
2011-07-10 23:58:26 +01:00
2012-08-31 07:37:16 +02:00
2012-01-11 08:56:24 -05:00
2011-05-21 13:48:10 +02:00
2012-08-31 07:37:16 +02:00
2012-08-31 07:37:16 +02:00
2011-05-21 13:48:10 +02:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-02-15 07:14:51 +01:00
2012-08-14 19:28:50 +02:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-03-21 12:49:36 -04:00
2012-08-15 22:32:06 +03:00
2012-03-19 18:46:34 +01:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2011-05-21 13:48:10 +02:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-03-12 11:37:47 -07:00
2012-08-15 22:32:06 +03:00
2012-03-07 10:29:52 -08:00
2012-03-06 10:47:42 -08:00
2011-03-20 13:25:19 +00:00
2012-08-15 22:32:06 +03:00
2011-07-16 01:08:31 +02:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2011-05-21 13:48:10 +02:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-24 10:45:39 +01:00
2012-07-11 07:29:05 +02:00
2012-08-20 11:22:59 +02:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2011-07-10 23:58:26 +01:00
2012-08-07 16:00:24 +02:00
2012-08-31 07:37:16 +02:00
2012-08-31 07:37:16 +02:00
2012-08-31 07:37:16 +02:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-14 12:48:46 +02:00
2012-08-31 07:37:16 +02:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00
2012-07-03 17:35:11 +02:00
2012-01-23 19:04:35 +01:00
2012-08-15 22:32:06 +03:00
2012-08-15 22:32:06 +03:00