简体   繁体   中英

FFmpeg disables Window Desktop Manager in my app

I render video using DirectShow & FFmpeg in my app. FFmpeg is only used for decoding of MPEG4/Part2 frames (custom decoder filter). My app does not play audio (only video).

When I lock my PC (Win7 Pro 64bit) with Win+L and then unlock it Windows brings me the following message:

The color scheme has been changed

The following program has performed an action that requires Windows to temporarily change the color scheme to Windows 7 Basic.

...app name, publisher, pid...

Windows will automatically change the color scheme back to Windows Aero when this program or other programs performing similar actions are no longer running.

I have a possibility of using another custom decoder filter which was developed without FFmpeg, and using it Windows does not show such messages to me.

I ran Aero troubleshooter that detected Desktop Window Manager was disabled.

My main question: Why this message appears after unlocking?

PS I'm using ffmpeg mpeg4 decoder, sws_scale from RGB24 to YUV420p. FFmpeg was built only with mpeg4 decoder/encoder, everything else was disabled.

The issue was caused by providing negative height (top-down bitmap) in bitmapinfoheader when negotiating media types. I changed height to be positive (bottom-up bitmap) in my decoder and color scheme of Windows 7 is not touched anymore.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM