[FFmpeg-devel,03/13] avcodec/pngdec: Clear MMX state in png_handle_row()

Submitted by Michael Niedermayer on Oct. 22, 2016, 7:02 p.m.

Details

Message ID 20161022190211.16526-3-michael@niedermayer.cc
State New
Headers show

Commit Message

Michael Niedermayer Oct. 22, 2016, 7:02 p.m.
zlib calls malloc/free thus emms is needed between inflate and png_handle_row()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/pngdec.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 36275ae..916e68f 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -387,6 +387,7 @@  static void png_handle_row(PNGDecContext *s)
         }
 the_end:;
     }
+    emms_c();
 }
 
 static int png_decode_idat(PNGDecContext *s, int length)