My program uses a pool of switchable video decoders. So I do a lot of these calls:
MFXVideoDECODE_Init (..) MFXVideoDECODE_DecodeFrameAsync (..) MFXVideoDECODE_Close (..)
Running in software mode, everything is fine. Running with MFX_IMPL_HARDWARE_ANY init flag will result in a lost of about 30 MB per Init/Close call. This occurs only when decoding frame data. Just initializing and closing decoder seems to produce no leak.
I work with driver 220.127.116.11.4156 on HD4600 and decode AVC streams (problem does not depend on specific AVC material).
Are you able to reproduce the issue using out of the box sample_decode? For example, if you run the sample_decode application for a long time, do you see the leak using HW implementation?
Can you please provide the system details - version of Media Server Studio, (I assume you are working on Windows), and a reproducer for us to debug the issue?
Thank you for feedback. It's not easily reproducible with standard samples, since it would require a number of open/close cycles.
However I already got a hint, that this is probably an issue in hardware driver, a fix will be developed.
Thanks for the response. Once you do find the issue/fix, it would be good if you could update us on what worked and what was the wrokaround (feel free to use the "Send Author a Message" feature on the thread).