avfilter/buffersrc: remove redundant flag
authorZhao Zhili <zhilizhao@tencent.com>
Wed, 4 Dec 2019 13:41:07 +0000 (21:41 +0800)
committerNicolas George <george@nsup.org>
Mon, 23 Dec 2019 16:02:55 +0000 (17:02 +0100)
commitbf08264daa97898daf02e4cc5aabb7641cb3eb6f
treea2305d861f9f258b58d64f35bbf9cf51fd59a7cd
parentf0b3b55002b7ad024ef94f005cd718a14d85e485
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.
libavfilter/buffersrc.c