From: Joseph A. <jo...@mi...> - 2012-11-08 10:47:45
|
Hi, So, my last patch was replacing: avcodec_alloc_context3(NULL); with: avcodec_alloc_context3(encoder ? encoder : decoder); I assumed either encoder or decoder would be set but not both. Now it turns out both are usually set, and are different ones. What's worse, passing a wrong one can cause memory corruption. The test case is decoding XDCAM and passing the encoder instead of the decoder. Now the problem is I couldn't find a way to figure out whether we are encoding or decoding. Burkhard, can you take a look? -- Joseph Artsimovich Senior C++ Applications Developer MirriAd Ltd |