servo / gecko-media

Firefox's media playback stack in a stand alone Rust crate
Mozilla Public License 2.0
6 stars 9 forks source link

Segfault running the example player with an mp4 on OSX #95

Closed ferjm closed 6 years ago

ferjm commented 6 years ago
❯ cargo run --example test-player -- ~/dev/mozilla/mozilla-central/dom/media/test/short.mp4
   Compiling gecko-media v0.1.0 (file:///Users/ferjm/dev/mozilla/gecko-media)
    Finished dev [unoptimized + debuginfo] target(s) in 16.73 secs
     Running `target/debug/examples/test-player /Users/ferjm/dev/mozilla/mozilla-central/dom/media/test/short.mp4`
Buffered ranges: [0..0.416667]
MetadataLoaded; duration: 0.47746
Video dimensions: (320, 240)
Seekable ranges: [0..0.47746]
OpenGL version 4.1 INTEL-10.28.26
Shader resource path: None
Assertion failure: planarImage, at /Users/ferjm/dev/mozilla/gecko-media/gecko/glue/ImageContainer.cpp:429
[1]    24887 segmentation fault  cargo run --example test-player --
philn commented 6 years ago

Having a look, thanks for the bug report :)

philn commented 6 years ago

I started a branch there https://github.com/servo/gecko-media/tree/macos-video-rendering But rendering is still wrong (Hulk style). I'm not sure yet what's going on there, likely a color conversion issue or pixel packing issue. Also maybe it's simply our test-player renderer misbehaving.