deinterlace: Split out NULL checks in yadif

Separate out explicit NULL checks for fields we depend on so
that coverity can hopefully verify dependencies better.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/585>
This commit is contained in:
Jan Schmidt 2020-05-09 03:09:03 +10:00
parent 1106eb16b6
commit d8f0deadc3

View file

@ -290,11 +290,12 @@ filter_scanline_yadif (GstDeinterlaceSimpleMethod * self,
|| s.bbp == NULL) ? 2 : 0;
/* When starting up, some data might not yet be available, so use the current frame */
if (s.m1 == NULL) {
s.tt1 = s.ttp;
if (s.m1 == NULL)
s.m1 = s.mp;
if (s.tt1 == NULL)
s.tt1 = s.ttp;
if (s.bb1 == NULL)
s.bb1 = s.bbp;
}
if (s.t2 == NULL)
s.t2 = s.tp2;
if (s.b2 == NULL)