[FFmpeg-devel,06/13] avcodec/vp3: Move emms_c() before early exit claus in vp3_draw_horiz_band()

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

Details

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

Commit Message

Michael Niedermayer Oct. 22, 2016, 7:02 p.m.
There are calls to *malloc() after it

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

Patch hide | download patch | download mbox

diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index fa749be..c9add4a 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1432,6 +1432,7 @@  static void vp3_draw_horiz_band(Vp3DecodeContext *s, int y)
                                   0);
     }
 
+    emms_c();
     if (!s->avctx->draw_horiz_band)
         return;
 
@@ -1449,7 +1450,6 @@  static void vp3_draw_horiz_band(Vp3DecodeContext *s, int y)
     for (i = 3; i < AV_NUM_DATA_POINTERS; i++)
         offset[i] = 0;
 
-    emms_c();
     s->avctx->draw_horiz_band(s->avctx, s->current_frame.f, offset, y, 3, h);
 }