Fix T51646: Motion Tracker instantly crashes
Was a mistake in previous changes. Weirdly enough, frame reading assumes cache_key is always non-NULL..
This commit is contained in:
@@ -134,6 +134,11 @@ struct LibmvFrameAccessor : public FrameAccessor {
|
||||
&width,
|
||||
&height);
|
||||
|
||||
if (cache_key == NULL) {
|
||||
// No mask for the given track.
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// TODO(sergey): Dumb code for until we can set data directly.
|
||||
FloatImage temp_image(float_buffer,
|
||||
height,
|
||||
|
Reference in New Issue
Block a user