diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-12-29 23:18:10 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-12-29 23:18:10 +0100 |
commit | de40905f55cdd668b50a143f8e30936d22a09a37 (patch) | |
tree | e62fb53c92c4075f21f413d58671dd64aa00b0bb /libavcodec | |
parent | b4c89c90ffc723c38282fbf061bf65da67e011b2 (diff) | |
download | ffmpeg-de40905f55cdd668b50a143f8e30936d22a09a37.tar.gz |
Fix condition for transparency warning in xsub encoder.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/xsubenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/xsubenc.c b/libavcodec/xsubenc.c index 53f4d6c3a9..707085488c 100644 --- a/libavcodec/xsubenc.c +++ b/libavcodec/xsubenc.c @@ -142,7 +142,7 @@ static int xsub_encode(AVCodecContext *avctx, unsigned char *buf, av_log(avctx, AV_LOG_WARNING, "No more than 4 subtitle colors supported (%d found.)\n", h->rects[0]->nb_colors); // TODO: Palette swapping if color zero is not transparent - if (((uint32_t *)h->rects[0]->pict.data[1])[0] & 0xff) + if (((uint32_t *)h->rects[0]->pict.data[1])[0] & 0xff000000) av_log(avctx, AV_LOG_WARNING, "Color index 0 is not transparent. Transparency will be messed up.\n"); if (make_tc(startTime, start_tc) || make_tc(endTime, end_tc)) { |