aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/output.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-10-06 13:29:37 +0200
committerAnton Khirnov <anton@khirnov.net>2012-10-12 12:45:38 +0200
commit0a7068fa5ddaa708d26c27eb17347985d6f1b36d (patch)
treee528b7a36cd24761b71094864262195a1e11a8b5 /libswscale/output.c
parentb7f1010c8fce09096057528f7cd29589ea1ae7df (diff)
downloadffmpeg-0a7068fa5ddaa708d26c27eb17347985d6f1b36d.tar.gz
sws: do not use av_pix_fmt_descriptors directly.
Diffstat (limited to 'libswscale/output.c')
-rw-r--r--libswscale/output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libswscale/output.c b/libswscale/output.c
index 42be67d5bc..4953290018 100644
--- a/libswscale/output.c
+++ b/libswscale/output.c
@@ -1270,12 +1270,13 @@ av_cold void ff_sws_init_output_funcs(SwsContext *c,
yuv2packedX_fn *yuv2packedX)
{
enum AVPixelFormat dstFormat = c->dstFormat;
+ const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(dstFormat);
if (is16BPS(dstFormat)) {
*yuv2planeX = isBE(dstFormat) ? yuv2planeX_16BE_c : yuv2planeX_16LE_c;
*yuv2plane1 = isBE(dstFormat) ? yuv2plane1_16BE_c : yuv2plane1_16LE_c;
} else if (is9_OR_10BPS(dstFormat)) {
- if (av_pix_fmt_descriptors[dstFormat].comp[0].depth_minus1 == 8) {
+ if (desc->comp[0].depth_minus1 == 8) {
*yuv2planeX = isBE(dstFormat) ? yuv2planeX_9BE_c : yuv2planeX_9LE_c;
*yuv2plane1 = isBE(dstFormat) ? yuv2plane1_9BE_c : yuv2plane1_9LE_c;
} else {