[FFmpeg-devel] [PATCH] pthread: Fix ff_thread_get_format issues when called outside frame decode.

2015-03-02 Thread Reimar Döffinger
When ff_thread_get_format is called from the main thread, e.g. during codec init it will access the thread_ctx as a PerThreadContext even though it is a FrameThreadContext. Catch this case and add asserts to protect against similar issues in other places. In addition, when ff_thread_get_format is c

Re: [FFmpeg-devel] [PATCH] pthread: Fix ff_thread_get_format issues when called outside frame decode.

2015-02-26 Thread Reimar Döffinger
On 26.02.2015, at 23:46, Hendrik Leppkes wrote: > On Thu, Feb 26, 2015 at 11:21 PM, Reimar Döffinger > wrote: >> When ff_thread_get_format is called from the main thread, e.g. >> during codec init it will access the thread_ctx as a PerThreadContext >> even though it is a FrameThreadContext. > >

Re: [FFmpeg-devel] [PATCH] pthread: Fix ff_thread_get_format issues when called outside frame decode.

2015-02-26 Thread Hendrik Leppkes
On Thu, Feb 26, 2015 at 11:21 PM, Reimar Döffinger wrote: > When ff_thread_get_format is called from the main thread, e.g. > during codec init it will access the thread_ctx as a PerThreadContext > even though it is a FrameThreadContext. Where is this a problem exactly? I don't see a single codec

[FFmpeg-devel] [PATCH] pthread: Fix ff_thread_get_format issues when called outside frame decode.

2015-02-26 Thread Reimar Döffinger
When ff_thread_get_format is called from the main thread, e.g. during codec init it will access the thread_ctx as a PerThreadContext even though it is a FrameThreadContext. Catch this case and add asserts to protect against similar issues in other places. In addition, when ff_thread_get_format is c