4 Commits
Author SHA1 Message Date
Xiujun Wang 0f3d20ebf6 avformat/cavsvideodec: reduce probe score for prefixed streams
cavsvideo_probe() returns a high score whenever it finds a valid
sequence and picture start code, even when the sequence header appears
only after unrelated leading data. This can make valid JPEG files probe
as CAVS.

Keep the high score when the sequence header is at the start of the
probed stream. Otherwise return AVPROBE_SCORE_EXTENSION / 2 so stronger
probes can win.

Signed-off-by: Xiujun Wang <xiujunwang.dev@gmail.com>
2026-11-05 20:10:04 +00:00
xiujunwang 9d3f0f2c58 doc/filters: fix gradients coordinates
Fix the gradients filter documentation to list the x1 coordinate.

Fixes: #10890
2026-10-01 18:02:36 +08:00
Xiujun Wang f88f1041a6 avformat/hls: advance the init section read pointer
The init section is read through a fixed-size AVIO buffer. When it
needs more than one read, copying from the start again duplicates the
first chunk and corrupts the data that follows. Copy from the current
read offset instead.

Fixes: #24603
Signed-off-by: Xiujun Wang <xiujunwang.dev@gmail.com>
2026-09-29 22:57:01 +02:00
Xiujun Wang d85cdd2597 avcodec/cavs: check reference frame before pointer arithmetic
The CAVS motion compensation code computes source pointers before checking whether the reference frame is available. Move the existing check before the pointer arithmetic to avoid undefined behavior when a missing reference frame is encountered.

Fixes: #24649

Signed-off-by: Xiujun Wang <xiujunwang.dev@gmail.com>
2026-09-29 10:54:54 +00:00