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 - Greenish video when video size smaller than texture
Summary: Greenish video when video size smaller than texture
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 FreeBSD
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-18 19:48 UTC by Unga
Modified: 2011-12-30 15:29 UTC (History)
0 users

See Also:


Attachments
Its a sample video player. (14.45 KB, text/plain)
2011-10-18 19:48 UTC, Unga
Details
Faster decoding example (14.02 KB, application/octet-stream)
2011-12-30 15:27 UTC, Sam Lantinga
Details
Quick diff between the test programs (4.17 KB, patch)
2011-12-30 15:29 UTC, Sam Lantinga
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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