Browse Source

imgconvert: fix 2 "discards const qualifier from pointer target type"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
2ad1eb1907
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/imgconvert.c

+ 1
- 1
libavcodec/imgconvert.c View File

@@ -69,7 +69,7 @@ void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int
*v_shift = desc->log2_chroma_h;
}

static int get_color_type(AVPixFmtDescriptor *desc) {
static int get_color_type(const AVPixFmtDescriptor *desc) {
if(desc->nb_components == 1 || desc->nb_components == 2)
return FF_COLOR_GRAY;



Loading…
Cancel
Save