mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
avcodec/mpegvideo_enc: Clear mmx state in ff_mpv_reallocate_putbitbuffer()
This function must be called from the mb or slice encoding loop and MMX state may not be clean there Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 03ec6b780cfae85b8bf0f32b2eda201063ad061b) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
865e3f5553
commit
8328c07fb1
@ -2788,6 +2788,8 @@ int ff_mpv_reallocate_putbitbuffer(MpegEncContext *s, size_t threshold, size_t s
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emms_c();
|
||||||
|
|
||||||
av_fast_padded_malloc(&new_buffer, &new_buffer_size,
|
av_fast_padded_malloc(&new_buffer, &new_buffer_size,
|
||||||
s->avctx->internal->byte_buffer_size + size_increase);
|
s->avctx->internal->byte_buffer_size + size_increase);
|
||||||
if (!new_buffer)
|
if (!new_buffer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user