diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2019-12-04 21:41:07 +0800 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2019-12-23 17:02:55 +0100 |
commit | bf08264daa97898daf02e4cc5aabb7641cb3eb6f (patch) | |
tree | a2305d861f9f258b58d64f35bbf9cf51fd59a7cd /libswresample/dither.c | |
parent | f0b3b55002b7ad024ef94f005cd718a14d85e485 (diff) | |
download | ffmpeg-bf08264daa97898daf02e4cc5aabb7641cb3eb6f.tar.gz |
avfilter/buffersrc: remove redundant flag
!(c->pix_fmt != AV_PIX_FMT_NONE || c->got_format_from_params)
equals
(c->pix_fmt == AV_PIX_FMT_NONE) && !c->got_format_from_params
1. When (c->pix_fmt == AV_PIX_FMT_NONE) is true, got_format_from_params is
always false, the flag doesn't contribute to the result.
2. When the first part is false, the second part doesn't matter, the flag
doesn't contribute to the result.
The result only depends on c->pix_fmt.
Diffstat (limited to 'libswresample/dither.c')
0 files changed, 0 insertions, 0 deletions