aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cscd.c
diff options
context:
space:
mode:
authorheimdallr <heimdallr@ngs.ru>2018-03-31 19:37:23 +0700
committerMichael Niedermayer <michael@niedermayer.cc>2018-10-23 01:44:40 +0200
commit19379529a5b86f8179b8b16b0218169acdb0d10c (patch)
tree2787ca4c1946802c5e8e74d20d794d08f76979ed /libavcodec/cscd.c
parent03f891c05099022215eb41c7b70fa916fe454356 (diff)
downloadffmpeg-19379529a5b86f8179b8b16b0218169acdb0d10c.tar.gz
avcodec/imgconvert: Fix loss mask bug in avcodec_find_best_pix_fmt_of_list()
example: AVPixelFormat pixFmts[] = { AV_PIX_FMT_RGB24, AV_PIX_FMT_RGBA }; int loss = 0; AVPixelFormat best = avcodec_find_best_pix_fmt_of_list(pixFmts, AV_PIX_FMT_BGRA, 1, &loss); best is AV_PIX_FMT_RGB24. But AV_PIX_FMT_RGBA is better. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 354b26a3945eadd4ed8fcd801dfefad2566241de) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/cscd.c')
0 files changed, 0 insertions, 0 deletions