mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
1106eb16b6
commit
d8f0deadc3
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue