I have an MFC/C++ program which is linking to the ffmpeg project. I can build the ffmpeg libs/dlls using mingw, but I can't actually debug it or step into it in any way. I'm having trouble with a specific function in the program and I can't figure out where it's erroring out. I looked at the source code and the error code returned by the function is used in several places. However the error is accompanied by a text error, which according to the project, are sent to stderr. Is there any way for me to access the stderr output of a lib/dll and print it to a file or even just the VS output window so I can figure out where it's failing and try to fix the problem?

Any help would be greatly appreciated.

Dan