avcodec/h264_slice: Put CONFIG_GRAY first in if()
This is more consistent Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
47aee6f047
commit
cd5a48e549
@ -246,7 +246,7 @@ static int alloc_picture(H264Context *h, H264Picture *pic)
|
|||||||
pic->hwaccel_picture_private = pic->hwaccel_priv_buf->data;
|
pic->hwaccel_picture_private = pic->hwaccel_priv_buf->data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!h->avctx->hwaccel && CONFIG_GRAY && h->flags & CODEC_FLAG_GRAY && pic->f.data[2]) {
|
if (CONFIG_GRAY && !h->avctx->hwaccel && h->flags & CODEC_FLAG_GRAY && pic->f.data[2]) {
|
||||||
int h_chroma_shift, v_chroma_shift;
|
int h_chroma_shift, v_chroma_shift;
|
||||||
av_pix_fmt_get_chroma_sub_sample(pic->f.format,
|
av_pix_fmt_get_chroma_sub_sample(pic->f.format,
|
||||||
&h_chroma_shift, &v_chroma_shift);
|
&h_chroma_shift, &v_chroma_shift);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user