We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1315

Summary: Greenish video when video size smaller than texture
Product: SDL Reporter: Unga <unga888>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: FreeBSD   
Attachments: Its a sample video player.
Faster decoding example
Quick diff between the test programs

Description Unga 2011-10-18 19:48:19 UTC
Created attachment 717 [details]
Its a sample video player.

Hi all

I have attached a sample video player to test this greenish issue.

Try a 1080p or 720p video. It should play with correct colours if your video display is 16:9.

After that, try a different aspect video such as Sintel (http://www.sintel.org/download) where the height of the video is shorter than your video display, then it plays in green.

I suspect SDL_UpdateTexture() is buggy.

Best regards
Unga
Comment 1 Sam Lantinga 2011-12-30 15:21:36 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/b052a5882a47
Comment 2 Sam Lantinga 2011-12-30 15:27:51 UTC
Created attachment 751 [details]
Faster decoding example

I updated the test program to work with the latest version of ffmpeg and moved the scaling to the video driver where it can be done in hardware.
Comment 3 Sam Lantinga 2011-12-30 15:29:01 UTC
Created attachment 752 [details]
Quick diff between the test programs