x86: Add an xmm clobbering wrapper for avcodec_encode_video2

Message ID 1379349635-3781-1-git-send-email-martin@martin.st
State Committed
Commit 1daea5232fc9963ba93b1b6d07a2373f87c9b392
Headers show

Commit Message

Martin Storsjö Sept. 16, 2013, 4:40 p.m.
This is required since 187105ff8 when we started trying to
wrap this function as well.
---
 libavcodec/x86/w64xmmtest.c |    6 ++++++
 1 file changed, 6 insertions(+)

Comments

Diego Biurrun Sept. 16, 2013, 4:46 p.m. | #1
On Mon, Sep 16, 2013 at 07:40:35PM +0300, Martin Storsjö wrote:
> This is required since 187105ff8 when we started trying to
> wrap this function as well.
> ---
>  libavcodec/x86/w64xmmtest.c |    6 ++++++
>  1 file changed, 6 insertions(+)

Should be OK.

Diego

Patch

diff --git a/libavcodec/x86/w64xmmtest.c b/libavcodec/x86/w64xmmtest.c
index a8b6803..2f064ca 100644
--- a/libavcodec/x86/w64xmmtest.c
+++ b/libavcodec/x86/w64xmmtest.c
@@ -71,3 +71,9 @@  wrap(avcodec_encode_subtitle(AVCodecContext *avctx,
 {
     testxmmclobbers(avcodec_encode_subtitle, avctx, buf, buf_size, sub);
 }
+
+wrap(avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
+                           const AVFrame *frame, int *got_packet_ptr))
+{
+    testxmmclobbers(avcodec_encode_video2, avctx, avpkt, frame, got_packet_ptr);
+}