History

avcodec/x86/mpegvideoencdsp: support negative strides in draw_edges_mmx()

Ramiro Polla committed 2 years ago

Commit f9074421 parent 98610fe1 file · +3 −3Browse files

Unified · Split

libavcodec/x86/mpegvideoencdsp_init.c+3−3
@@ -121,7 +121,7 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height, · 120 unmodified lines
121121 "movq %%mm1, (%0, %2) \n\t"
122122 "add %1, %0 \n\t"
123123 "cmp %3, %0 \n\t"
124− "jb 1b \n\t"
124+ "jnz 1b \n\t"
125125 : "+r" (ptr)
126126 : "r" ((x86_reg) wrap), "r" ((x86_reg) width),
127127 "r" (ptr + wrap * height));
@@ -142,7 +142,7 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height, · 14 unmodified lines
142142 "movq %%mm1, 8(%0, %2) \n\t"
143143 "add %1, %0 \n\t"
144144 "cmp %3, %0 \n\t"
145− "jb 1b \n\t"
145+ "jnz 1b \n\t"
146146 : "+r"(ptr)
147147 : "r"((x86_reg)wrap), "r"((x86_reg)width), "r"(ptr + wrap * height)
148148 );
@@ -161,7 +161,7 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height, · 12 unmodified lines
161161 "movd %%mm1, (%0, %2) \n\t"
162162 "add %1, %0 \n\t"
163163 "cmp %3, %0 \n\t"
164− "jb 1b \n\t"
164+ "jnz 1b \n\t"
165165 : "+r" (ptr)
166166 : "r" ((x86_reg) wrap), "r" ((x86_reg) width),
167167 "r" (ptr + wrap * height));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t