libavcodec: fix constness in clobber test avcodec_open2() wrappers

Message ID 1466936801-34059-1-git-send-email-martin@martin.st
State Committed
Commit 4a081f224e12f4227ae966bcbdd5384f22121ecf
Headers show

Commit Message

Martin Storsjö June 26, 2016, 10:26 a.m.
From: Clément Bœsch <u@pkh.me>

---
Fixed the same issue for x86 as well, amended the commit message
since it isn't specific to arm/aarch64.
---
 libavcodec/aarch64/neontest.c | 2 +-
 libavcodec/arm/neontest.c     | 2 +-
 libavcodec/x86/w64xmmtest.c   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Comments

Janne Grunau June 26, 2016, 11:39 a.m. | #1
On 2016-06-26 13:26:41 +0300, Martin Storsjö wrote:
> From: Clément Bœsch <u@pkh.me>
> 
> ---
> Fixed the same issue for x86 as well, amended the commit message
> since it isn't specific to arm/aarch64.
> ---
>  libavcodec/aarch64/neontest.c | 2 +-
>  libavcodec/arm/neontest.c     | 2 +-
>  libavcodec/x86/w64xmmtest.c   | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/libavcodec/aarch64/neontest.c b/libavcodec/aarch64/neontest.c
> index 0414829..137c8e6 100644
> --- a/libavcodec/aarch64/neontest.c
> +++ b/libavcodec/aarch64/neontest.c
> @@ -23,7 +23,7 @@
>  #include "libavutil/aarch64/neontest.h"
>  
>  wrap(avcodec_open2(AVCodecContext *avctx,
> -                   AVCodec *codec,
> +                   const AVCodec *codec,
>                     AVDictionary **options))
>  {
>      testneonclobbers(avcodec_open2, avctx, codec, options);
> diff --git a/libavcodec/arm/neontest.c b/libavcodec/arm/neontest.c
> index b77bcd7..692576e 100644
> --- a/libavcodec/arm/neontest.c
> +++ b/libavcodec/arm/neontest.c
> @@ -23,7 +23,7 @@
>  #include "libavutil/arm/neontest.h"
>  
>  wrap(avcodec_open2(AVCodecContext *avctx,
> -                   AVCodec *codec,
> +                   const AVCodec *codec,
>                     AVDictionary **options))
>  {
>      testneonclobbers(avcodec_open2, avctx, codec, options);
> diff --git a/libavcodec/x86/w64xmmtest.c b/libavcodec/x86/w64xmmtest.c
> index 2f064ca..400dc4d 100644
> --- a/libavcodec/x86/w64xmmtest.c
> +++ b/libavcodec/x86/w64xmmtest.c
> @@ -23,7 +23,7 @@
>  #include "libavutil/x86/w64xmmtest.h"
>  
>  wrap(avcodec_open2(AVCodecContext *avctx,
> -                   AVCodec *codec,
> +                   const AVCodec *codec,
>                     AVDictionary **options))
>  {
>      testxmmclobbers(avcodec_open2, avctx, codec, options);

ok

Janne

Patch

diff --git a/libavcodec/aarch64/neontest.c b/libavcodec/aarch64/neontest.c
index 0414829..137c8e6 100644
--- a/libavcodec/aarch64/neontest.c
+++ b/libavcodec/aarch64/neontest.c
@@ -23,7 +23,7 @@ 
 #include "libavutil/aarch64/neontest.h"
 
 wrap(avcodec_open2(AVCodecContext *avctx,
-                   AVCodec *codec,
+                   const AVCodec *codec,
                    AVDictionary **options))
 {
     testneonclobbers(avcodec_open2, avctx, codec, options);
diff --git a/libavcodec/arm/neontest.c b/libavcodec/arm/neontest.c
index b77bcd7..692576e 100644
--- a/libavcodec/arm/neontest.c
+++ b/libavcodec/arm/neontest.c
@@ -23,7 +23,7 @@ 
 #include "libavutil/arm/neontest.h"
 
 wrap(avcodec_open2(AVCodecContext *avctx,
-                   AVCodec *codec,
+                   const AVCodec *codec,
                    AVDictionary **options))
 {
     testneonclobbers(avcodec_open2, avctx, codec, options);
diff --git a/libavcodec/x86/w64xmmtest.c b/libavcodec/x86/w64xmmtest.c
index 2f064ca..400dc4d 100644
--- a/libavcodec/x86/w64xmmtest.c
+++ b/libavcodec/x86/w64xmmtest.c
@@ -23,7 +23,7 @@ 
 #include "libavutil/x86/w64xmmtest.h"
 
 wrap(avcodec_open2(AVCodecContext *avctx,
-                   AVCodec *codec,
+                   const AVCodec *codec,
                    AVDictionary **options))
 {
     testxmmclobbers(avcodec_open2, avctx, codec, options);