Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
thienphuoc opened this issue Jun 11, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@thienphuoc
Copy link

  • axmol version:2.1.3

  • devices test on:Apple M2/ IOS 17.4.1

  • developing environments

    • Xcode version: 15.3
    • cmake version: 3.28.1
      Steps to Reproduce:

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.

Screen.Recording.2024-06-11.at.10.58.09.mov

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
Copy link
Collaborator

halx99 commented Jun 14, 2024

seems caused by the video dim not match

@halx99 halx99 added needs-confirm bug Something isn't working and removed needs-confirm labels Jun 14, 2024
@halx99 halx99 closed this as completed in 2193b50 Jun 18, 2024
@halx99 halx99 added this to the 2.1.4 milestone Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants