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

Michael Niedermayer michael at niedermayer.cc
Sat Oct 22 22:02:04 EEST 2016


There are calls to *malloc() after it

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

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);
 }
 
-- 
2.10.1



More information about the ffmpeg-devel mailing list