diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-10-12 16:57:04 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-10-12 16:57:04 +0000 |
commit | a291345b1e82e3c0b108c5b4041f668b223b58a5 (patch) | |
tree | 1b2a9efd1516251bea06b4d2c7635cefae2b59b3 /libswscale/utils.c | |
parent | 82eba2266739dcd64f01ac22283c9bfa46607512 (diff) | |
download | ffmpeg-a291345b1e82e3c0b108c5b4041f668b223b58a5.tar.gz |
sws: do not use av_pix_fmt_descriptors directly
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index f9797b19da..3310d78dc7 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1234,7 +1234,7 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, // try to avoid drawing green stuff between the right end and the stride end for (i = 0; i < c->vChrBufSize; i++) - if(av_pix_fmt_descriptors[c->dstFormat].comp[0].depth_minus1 == 15){ + if(desc_dst->comp[0].depth_minus1 == 15){ av_assert0(c->dstBpc > 14); for(j=0; j<dst_stride/2+1; j++) ((int32_t*)(c->chrUPixBuf[i]))[j] = 1<<18; |