Files
ffmpeg/libavcodec
Andreas Rheinhardt 67f6e7ed6d avcodec: Remove cumbersome way of checking for amount of bytes left
Several encoders used code like the following to check for the amount of
bytes left in a PutBitContext:
pb->buf_end - pb->buf - (put_bits_count(pb) >> 3)
Besides the fact that using the pointers directly might pose
a maintainence burden in the future this also leads to suboptimal code:
The above code reads all three pointers (buf, buf_ptr and buf_end), but
touching buf is unnecessary and switching to put_bytes_left()
automatically fixes this.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2021-03-30 12:36:32 +02:00
..
2021-02-27 17:09:44 +01:00
2021-03-22 02:43:04 +01:00
2021-01-01 15:25:48 +01:00
2021-01-01 15:25:48 +01:00
2021-03-05 19:45:00 +02:00
2021-03-09 13:41:22 +01:00
2021-02-27 17:09:44 +01:00
2021-03-22 02:43:04 +01:00
2021-03-01 06:10:44 +01:00
2021-03-01 17:36:42 +01:00
2021-03-01 17:36:42 +01:00
2021-02-09 15:01:34 +01:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-09 13:41:22 +01:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2021-01-08 05:05:10 +01:00
2021-03-22 02:43:04 +01:00
2021-01-21 17:13:54 +00:00
2021-01-21 17:13:54 +00:00
2021-01-21 17:13:54 +00:00
2021-03-01 06:10:44 +01:00
2021-03-22 02:43:04 +01:00
2021-03-08 09:31:04 +01:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2020-12-31 11:49:43 +01:00
2021-03-22 02:43:04 +01:00
2021-02-04 17:26:06 +01:00
2021-01-01 15:25:48 +01:00
2021-01-01 15:25:48 +01:00
2021-03-01 17:36:16 +01:00
2021-03-09 13:41:22 +01:00
2021-03-09 13:41:22 +01:00
2021-02-02 14:29:33 +01:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-09 13:41:22 +01:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-29 22:19:39 +02:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-05 19:45:00 +02:00
2021-03-05 19:45:00 +02:00
2021-03-09 13:41:22 +01:00
2021-01-25 00:18:47 +01:00
2021-01-01 15:25:48 +01:00