[FFmpeg-devel,05/13] avcodec/utvideoenc: Clear MMX state after predict loop

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

Details

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

Commit Message

Michael Niedermayer Oct. 22, 2016, 7:02 p.m.
The subsequent huffman code performs several memory allocations, MMX state
thus needs to be cleared between

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

Comments

Paul B Mahol Oct. 25, 2016, 10:49 a.m.
On 10/22/16, Michael Niedermayer <michael@niedermayer.cc> wrote:
> The subsequent huffman code performs several memory allocations, MMX state
> thus needs to be cleared between
>
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  libavcodec/utvideoenc.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c
> index 8ffc263..fd27caa 100644
> --- a/libavcodec/utvideoenc.c
> +++ b/libavcodec/utvideoenc.c
> @@ -442,6 +442,7 @@ static int encode_plane(AVCodecContext *avctx, uint8_t
> *src,
>                 c->frame_pred);
>          return AVERROR_OPTION_NOT_FOUND;
>      }
> +    emms_c();
>
>      /* Count the usage of values */
>      count_usage(dst, width, height, counts);
> --
> 2.10.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>

lgtm

Patch hide | download patch | download mbox

diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c
index 8ffc263..fd27caa 100644
--- a/libavcodec/utvideoenc.c
+++ b/libavcodec/utvideoenc.c
@@ -442,6 +442,7 @@  static int encode_plane(AVCodecContext *avctx, uint8_t *src,
                c->frame_pred);
         return AVERROR_OPTION_NOT_FOUND;
     }
+    emms_c();
 
     /* Count the usage of values */
     count_usage(dst, width, height, counts);