diff options
author | heimdallr <heimdallr@ngs.ru> | 2018-03-31 19:37:23 +0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-04-13 00:35:15 +0200 |
commit | 3f949b7a6461679204159eb7a9fbcd206484649b (patch) | |
tree | 4921d11c40de25fcc6702fd3e9bc82a004c7a01a /doc/APIchanges | |
parent | 49336482fd04541623e9418264644dd80640dbfe (diff) | |
download | ffmpeg-3f949b7a6461679204159eb7a9fbcd206484649b.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 'doc/APIchanges')
0 files changed, 0 insertions, 0 deletions