[FFmpeg-devel] [PATCH 11/13] avcodec/mpegutils: Move emms_c() before conditional return paths in ff_draw_horiz_band()
Michael Niedermayer
michael at niedermayer.cc
Sat Oct 22 22:02:09 EEST 2016
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/mpegutils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/mpegutils.c b/libavcodec/mpegutils.c
index 62cc36a..1e6620e 100644
--- a/libavcodec/mpegutils.c
+++ b/libavcodec/mpegutils.c
@@ -42,6 +42,8 @@ void ff_draw_horiz_band(AVCodecContext *avctx,
h = FFMIN(h, avctx->height - y);
+ emms_c();
+
if (field_pic && first_field &&
!(avctx->slice_flags & SLICE_FLAG_ALLOW_FIELD))
return;
@@ -72,8 +74,6 @@ void ff_draw_horiz_band(AVCodecContext *avctx,
offset[i] = 0;
}
- emms_c();
-
avctx->draw_horiz_band(avctx, src, offset,
y, picture_structure, h);
}
--
2.10.1
More information about the ffmpeg-devel
mailing list