vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Thu Jan 17 
11:27:41 2019 +0100| [cfd18d41122df37165cca6eb1ed575ff90a10044] | committer: 
Francois Cartegnie

codec: avcodec: use av_strerror

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cfd18d41122df37165cca6eb1ed575ff90a10044
---

 modules/codec/avcodec/audio.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index 44cea533e7..4cf3ea39ce 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -392,10 +392,8 @@ static int DecodeBlock( decoder_t *p_dec, block_t 
**pp_block )
                 else
                 {
                     char errorstring[AV_ERROR_MAX_STRING_SIZE];
-                    const char *psz_error = av_make_error_string( errorstring,
-                                                                  
AV_ERROR_MAX_STRING_SIZE, ret );
-                    if( psz_error )
-                        msg_Err( p_dec, "%s", psz_error );
+                    if( !av_strerror( ret, errorstring, 
AV_ERROR_MAX_STRING_SIZE ) )
+                        msg_Err( p_dec, "%s", errorstring );
                     goto drop;
                 }
             }

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to