Browse Source

lavc/utils: Make pix_fmt desc pointer const.

Fixes an "initialization discards qualifiers from pointer target type" warning.
tags/n2.5
Carl Eugen Hoyos 11 years ago
parent
commit
f05855414e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/utils.c

+ 1
- 1
libavcodec/utils.c View File

@@ -279,7 +279,7 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
int i;
int w_align = 1;
int h_align = 1;
AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(s->pix_fmt);
AVPixFmtDescriptor const *desc = av_pix_fmt_desc_get(s->pix_fmt);

if (desc) {
w_align = 1 << desc->log2_chroma_w;


Loading…
Cancel
Save