h264: move 444 border xchg under if (deblock_top)
Fixes out of array access Fixes Ticket2668 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a92fbe16f2
commit
f27b22b497
@ -2230,7 +2230,6 @@ static av_always_inline void xchg_mb_border(H264Context *h, uint8_t *src_y,
|
||||
XCHG(h->top_borders[top_idx][h->mb_x + 1],
|
||||
src_y + (17 << pixel_shift), 1);
|
||||
}
|
||||
}
|
||||
if (simple || !CONFIG_GRAY || !(h->flags & CODEC_FLAG_GRAY)) {
|
||||
if (chroma444) {
|
||||
if (deblock_topleft) {
|
||||
@ -2246,7 +2245,6 @@ static av_always_inline void xchg_mb_border(H264Context *h, uint8_t *src_y,
|
||||
XCHG(h->top_borders[top_idx][h->mb_x + 1] + (32 << pixel_shift), src_cr + (17 << pixel_shift), 1);
|
||||
}
|
||||
} else {
|
||||
if (deblock_top) {
|
||||
if (deblock_topleft) {
|
||||
XCHG(top_border_m1 + (16 << pixel_shift), src_cb - (7 << pixel_shift), 1);
|
||||
XCHG(top_border_m1 + (24 << pixel_shift), src_cr - (7 << pixel_shift), 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user