]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/x86/diracdsp.asm
avcodec/mpegvideo_enc: Don't apply non-zero offset to null pointer
[ffmpeg] / libavcodec / x86 / diracdsp.asm
index cc8a26fca5fb595ca7edcb4836795f3027c7a848..17145baf874dbea6cce93eb4981c96304473b1f7 100644 (file)
@@ -274,7 +274,7 @@ cglobal dequant_subband_32, 7, 7, 4, src, dst, stride, qf, qs, tot_v, tot_h
     movd   m3, qsd
     SPLATD m2
     SPLATD m3
-    mov    r4, tot_hq
+    mov    r4d, tot_hd
     mov    r3, dstq
 
     .loop_v:
@@ -294,8 +294,9 @@ cglobal dequant_subband_32, 7, 7, 4, src, dst, stride, qf, qs, tot_v, tot_h
 
     add    srcq, mmsize
     add    dstq, mmsize
-    sub    tot_hd, 4
+    sub    tot_hq, 4
     jg     .loop_h
+    lea    srcq, [srcq + 4*tot_hq]
 
     add    r3, strideq
     dec    tot_vd