Haiku3D: Clear media_format using assignment operator.

This commit is contained in:
Augustin Cavalier
2019-05-24 22:51:10 -04:00
parent ca904ab353
commit f259502c90
@@ -83,7 +83,7 @@ VideoFileTexture::_Load(const char* fileName)
// specifiy the decoded format. we derive this information from // specifiy the decoded format. we derive this information from
// the encoded format. // the encoded format.
memset(&format, 0, sizeof(media_format)); format = media_format();
format.u.raw_video.last_active = (int32) (bounds.Height() - 1.0); format.u.raw_video.last_active = (int32) (bounds.Height() - 1.0);
format.u.raw_video.orientation = B_VIDEO_TOP_LEFT_RIGHT; format.u.raw_video.orientation = B_VIDEO_TOP_LEFT_RIGHT;
format.u.raw_video.pixel_width_aspect = 1; format.u.raw_video.pixel_width_aspect = 1;