[FFmpeg-devel] [PATCH 5/6] xv.c: Add missing const to lookup table.

Paul B Mahol onemda at gmail.com
Sat Aug 30 17:55:39 CEST 2014


On 8/30/14, Reimar Doeffinger <Reimar.Doeffinger at gmx.de> wrote:
> Signed-off-by: Reimar Doeffinger <Reimar.Doeffinger at gmx.de>
> ---
>  libavdevice/xv.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavdevice/xv.c b/libavdevice/xv.c
> index aeb3e41..c19c15c 100644
> --- a/libavdevice/xv.c
> +++ b/libavdevice/xv.c
> @@ -67,7 +67,7 @@ typedef struct XVTagFormatMap
>      enum AVPixelFormat format;
>  } XVTagFormatMap;
>
> -static XVTagFormatMap tag_codec_map[] = {
> +static const XVTagFormatMap tag_codec_map[] = {
>      { MKTAG('I','4','2','0'), AV_PIX_FMT_YUV420P },
>      { MKTAG('U','Y','V','Y'), AV_PIX_FMT_UYVY422 },
>      { MKTAG('Y','U','Y','2'), AV_PIX_FMT_YUYV422 },
> @@ -76,7 +76,7 @@ static XVTagFormatMap tag_codec_map[] = {
>
>  static int xv_get_tag_from_format(enum AVPixelFormat format)
>  {
> -    XVTagFormatMap *m = tag_codec_map;
> +    const XVTagFormatMap *m = tag_codec_map;
>      int i;
>      for (i = 0; m->tag; m = &tag_codec_map[++i]) {
>          if (m->format == format)
> --
> 2.1.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>

lgtm


More information about the ffmpeg-devel mailing list