[FFmpeg-devel] [PATCH 01/20] avcodec/wma: Remove nonsense volatile

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Mon May 10 23:02:29 EEST 2021


Andreas Rheinhardt:
> The address of this variable never leaks, so it cannot be modified
> by anyone else at all.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavcodec/wma.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/wma.c b/libavcodec/wma.c
> index cfa5fa3355..ee04ef725f 100644
> --- a/libavcodec/wma.c
> +++ b/libavcodec/wma.c
> @@ -79,7 +79,7 @@ av_cold int ff_wma_init(AVCodecContext *avctx, int flags2)
>      WMACodecContext *s = avctx->priv_data;
>      int i, ret;
>      float bps1, high_freq;
> -    volatile float bps;
> +    float bps;
>      int sample_rate1;
>      int coef_vlc_table;
>  
> 
Will apply tomorrow unless there are objections.

- Andreas


More information about the ffmpeg-devel mailing list