axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
922 stars 205 forks source link

HSL Video - Assertion failed: (_videoRotation % 180 == 0 ? YASIO_SZ_ALIGN(videoDim.x, 32) #1984

Closed thienphuoc closed 5 months ago

thienphuoc commented 5 months ago

S1. Play this video auto videoPlayer = ax::ui::VideoPlayer::create(); videoPlayer->setPosition(winSize / 2); videoPlayer->setAnchorPoint(Vec2::ANCHOR_MIDDLE); videoPlayer->setContentSize(0.25f*Size({1920,1080})); videoPlayer->setUserInputEnabled(true); videoPlayer->setKeepAspectRatioEnabled(true); videoPlayer->setURL("https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_adv_example_hevc/master.m3u8?58331"); videoPlayer->play(); this->addChild(videoPlayer);

S2.

https://github.com/axmolengine/axmol/assets/17909394/5067ca79-e72f-4c12-b193-677bd54ae699

Data :

YWidth: 1920 YHeight: 1080 UVWidth: 960 UVHeight: 540 YPitch: 1920 UVPitch: 1920 YDataLen: 2073600 UVDataLen: 1036800 videoDim.x: 960 videoDim.y: 540 Expected Data Length (aligned): 777600 Assertion failed: YDataLen + UVDataLen does not match expected data length. Expected: 777600, Actual: 3110400

halx99 commented 5 months ago

seems caused by the video dim not match