Andreas Rheinhardt
3144652588
avcodec/x86/lossless_videoencdsp_init: Don't read too often
...
sub_median_pred_mmxext() calculates a predictor from the left, top
and topleft pixel values. The topleft values need to be initialized
differently for the first loop initialization than for the others
in order to avoid reading ptr[-1]. So it has been initialized before
the loop and then read again at the end of the loop, so that the last
value read was never used. Yet this can lead to reads beyond the end
of the buffer, e.g. with
ffmpeg -cpuflags mmx+mmxext -f lavfi -i "color=size=64x4,format=yuv420p" \
-vf vflip -c:v ffvhuff -pred median -frames 1 -f null -
Fix this by not reading the value at the end of the loop.
Reviewed-by: Lynne <dev@lynne.ee >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2025-12-14 10:16:29 +01:00
..
2025-12-04 09:34:32 +00:00
2025-11-24 21:22:55 +00:00
2025-12-03 10:23:39 +01:00
2025-11-30 22:20:13 +01:00
2025-12-03 01:36:01 +00:00
2025-12-03 10:20:41 +01:00
2025-12-03 13:53:54 +02:00
2025-11-30 22:20:13 +01:00
2025-12-12 09:44:01 +01:00
2025-12-14 10:33:40 +02:00
2025-11-24 16:48:31 +01:00
2025-12-13 22:12:26 +01:00
2025-12-12 15:21:49 -03:00
2025-12-04 08:40:43 +00:00
2025-12-14 10:16:29 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-12-13 19:00:35 -03:00
2025-12-03 11:52:54 +01:00
2025-12-05 15:53:19 +00:00
2025-11-24 20:06:24 +00:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-12-03 11:52:54 +01:00
2025-12-05 19:42:41 +01:00
2025-12-07 12:47:46 -03:00
2025-12-07 12:47:46 -03:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-12-11 20:01:01 -03:00
2025-11-30 22:20:13 +01:00
2025-12-03 11:52:54 +01:00
2025-12-03 11:52:54 +01:00
2025-12-12 15:21:48 -03:00
2025-12-12 15:21:48 -03:00
2025-12-12 15:21:48 -03:00
2025-12-03 11:52:54 +01:00
2025-12-03 11:52:54 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-12-13 18:45:17 -03:00
2025-12-13 18:45:17 -03:00
2025-12-08 21:31:13 +00:00
2025-12-04 08:26:26 +00:00
2025-12-04 08:26:26 +00:00
2025-12-04 08:26:26 +00:00
2025-12-04 08:26:26 +00:00
2025-11-30 22:20:13 +01:00
2025-12-07 11:58:01 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-12-03 11:52:54 +01:00
2025-11-30 22:20:13 +01:00
2025-12-12 18:18:46 +00:00
2025-11-26 15:16:42 +01:00
2025-12-03 11:52:54 +01:00
2025-11-28 19:52:51 +01:00
2025-11-30 22:20:13 +01:00
2025-11-26 15:16:40 +01:00
2025-11-26 15:16:40 +01:00
2025-11-26 15:16:40 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-12-03 11:52:54 +01:00
2025-11-30 22:20:13 +01:00
2025-11-21 11:55:09 +01:00
2025-11-21 11:55:09 +01:00
2025-11-30 22:20:13 +01:00
2025-12-03 11:52:54 +01:00
2025-12-05 13:54:08 +00:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-12-03 11:52:54 +01:00
2025-11-30 22:20:13 +01:00
2025-12-13 05:57:47 +01:00
2025-12-13 05:57:47 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-26 15:16:43 +01:00
2025-11-30 22:20:13 +01:00
2025-11-21 11:55:09 +01:00
2025-11-24 16:48:31 +01:00
2025-11-24 16:48:31 +01:00
2025-12-03 11:52:54 +01:00
2025-11-30 22:20:13 +01:00
2025-12-13 18:45:17 -03:00
2025-12-13 18:45:17 -03:00
2025-12-08 21:31:13 +00:00
2025-12-03 11:52:54 +01:00
2025-12-03 11:52:54 +01:00
2025-12-11 05:38:36 -05:00
2025-12-08 21:31:13 +00:00
2025-12-13 19:00:35 -03:00
2025-12-13 19:00:35 -03:00
2025-12-03 11:52:54 +01:00
2025-12-08 21:31:13 +00:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-12-14 10:16:25 +01:00
2025-12-13 19:00:35 -03:00
2025-11-30 22:20:13 +01:00
2025-12-03 11:52:54 +01:00
2025-12-03 11:52:54 +01:00
2025-11-21 11:55:09 +01:00
2025-11-21 11:55:09 +01:00
2025-12-03 10:20:41 +01:00
2025-11-21 11:55:09 +01:00
2025-12-03 11:52:54 +01:00
2025-12-03 11:52:54 +01:00
2025-11-21 11:55:09 +01:00
2025-12-03 11:52:54 +01:00
2025-12-03 11:52:54 +01:00
2025-12-07 20:20:38 +02:00
2025-12-07 20:20:38 +02:00
2025-12-03 10:23:43 +01:00
2025-12-03 10:23:43 +01:00
2025-11-21 11:55:09 +01:00
2025-12-03 11:52:54 +01:00
2025-11-21 11:55:09 +01:00
2025-12-13 18:45:17 -03:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-12-03 16:40:02 +00:00
2025-11-26 15:16:41 +01:00
2025-11-30 22:20:13 +01:00
2025-12-05 19:42:41 +01:00
2025-11-30 22:20:13 +01:00
2025-11-27 15:54:49 +08:00
2025-11-21 11:55:09 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-21 11:55:09 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-12-05 11:31:23 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-11-30 22:20:13 +01:00
2025-12-13 19:00:35 -03:00
2025-11-30 22:20:13 +01:00
2025-11-20 00:56:12 +08:00
2025-11-30 22:20:13 +01:00
2025-11-27 11:34:25 +01:00
2025-11-30 22:20:13 +01:00
2025-11-27 12:10:29 +01:00
2025-11-27 12:10:29 +01:00
2025-11-27 12:10:29 +01:00
2025-11-30 22:20:13 +01:00
2025-12-04 15:17:37 +01:00
2025-11-30 22:20:13 +01:00
2025-11-27 12:10:29 +01:00
2025-11-27 12:10:29 +01:00
2025-11-27 12:10:32 +01:00
2025-12-13 19:12:20 +01:00
2025-12-13 21:35:56 +01:00
2025-12-13 19:12:24 +01:00
2025-12-13 21:35:56 +01:00
2025-12-03 11:52:54 +01:00
2025-12-03 11:52:54 +01:00
2025-12-03 11:52:54 +01:00
2025-12-13 19:12:24 +01:00
2025-12-13 19:12:20 +01:00
2025-12-13 19:12:20 +01:00
2025-12-13 19:12:24 +01:00
2025-12-13 19:12:24 +01:00
2025-12-12 12:43:00 +00:00
2025-12-13 19:12:20 +01:00
2025-11-30 22:20:13 +01:00
2025-12-03 11:52:54 +01:00