Page 1 of 1

Green border video buffer corruption?

Posted: 10 Oct 2013 17:29
by sherington
Hello,

I noticed with my embedded media players that the current vlc-2.2.0-git shows green borders on some videos. On a DVD ISO I see a single line of green pixels on the right hand side of the video. With an MP4 I see about 30 lines of dark green and 30 lines of light green pixels on the bottom edge.

This works OK with vlc-2.1.0.

The earliest commit that I know about when I spotted this behaviour was 241b81a725b7c092bbcbd4a8a192da1bfe026977. I am *not* saying that commit broke it, but that's the earliest commit I know about where it is broken.

I then checked in the vlc QT application for 2.2.0-git and I do see the same problem.

Re: Green border video buffer corruption?

Posted: 10 Oct 2013 17:45
by Rémi Denis-Courmont
If you use vmem, it is a known bug waiting for someone who cares to patch it. With Qt, you really should use native embedded windows though.

Re: Green border video buffer corruption?

Posted: 10 Oct 2013 18:48
by sherington
If you use vmem, it is a known bug waiting for someone who cares to patch it. With Qt, you really should use native embedded windows though.
I'm just embedding a regular window with libvlc_media_player_set_xwindow(wid).

The vlc application itself, when built from the latest 2.2.0 git, shows the same issue.

https://docs.google.com/file/d/0B1LSsrA ... 3d5bDdQTFU

Re: Green border video buffer corruption?

Posted: 10 Oct 2013 21:07
by Rémi Denis-Courmont
Then I don't know and I cannot reproduce.

Re: Green border video buffer corruption?

Posted: 11 Oct 2013 09:26
by XilasZ
Known issue, this green line bug appeared when avcodec_align_dimensions2 was introduced in avcodec/video.c, it happens with directx/direct3d/opengl vouts on windows, and also on android.
Didn't had the time yet to test more.