diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-07-06 22:50:35 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-07-18 22:56:30 +0100 |
commit | 8a442d7a8a687a469ca502a18a0c68f5302b15e0 (patch) | |
tree | f34ed208ddd1198a9ffef3d348a7bbdde5af4d16 /compat/va_copy.h | |
parent | 5b8a708492f84ab49bcf9f694c50ac87cbdcc21b (diff) | |
download | ffmpeg-8a442d7a8a687a469ca502a18a0c68f5302b15e0.tar.gz |
pixdesc: Improve scoring for opaque/unknown pixel formats
Hardware pixel formats do not tell you anything about their actual
contents, but should still score higher than formats with completely
unknown properties, which in turn should score higher than invalid
formats.
Do not return an AVERROR code as a score.
Fixes a hang in libavfilter where format negotiation gets stuck in a
loop because AV_PIX_FMT_NONE scores more highly than all other
possibilities.
Diffstat (limited to 'compat/va_copy.h')
0 files changed, 0 insertions, 0 deletions