git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8ebb61
)
imgutils: Fix a typo in avcodec_get_pix_fmt_loss
author
Luca Barbato
<lu_zero@gentoo.org>
Tue, 18 Aug 2015 14:18:30 +0000
(16:18 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Fri, 21 Aug 2015 10:03:36 +0000
(12:03 +0200)
If the candidate does not have alpha and the source does have alpha
report the loss of alpha.
CC: libav-stable@libav.org
libavcodec/imgconvert.c
patch
|
blob
|
history
diff --git
a/libavcodec/imgconvert.c
b/libavcodec/imgconvert.c
index
2d32602
..
0741e6e
100644
(file)
--- a/
libavcodec/imgconvert.c
+++ b/
libavcodec/imgconvert.c
@@
-78,7
+78,7
@@
int avcodec_get_pix_fmt_loss(enum AVPixelFormat dst_pix_fmt,
loss |= FF_LOSS_COLORSPACE;
if (has_alpha && !(dst_desc->flags & AV_PIX_FMT_FLAG_ALPHA) &&
- (
dst
_desc->flags & AV_PIX_FMT_FLAG_ALPHA))
+ (
src
_desc->flags & AV_PIX_FMT_FLAG_ALPHA))
loss |= FF_LOSS_ALPHA;
if (dst_pix_fmt == AV_PIX_FMT_PAL8 && !is_gray(src_desc))