Commit 6752dd5a authored by Reimar Döffinger's avatar Reimar Döffinger
Browse files

Loop up to MAX_THREADS instead of h->s.avctx->thread_count to free the thread

contexts, this avoids a crash when freeing the H.264 parser context introduced in
r18406, since h->s.avctx is NULL there.

Originally committed as revision 18418 to svn://
parent ede0e475
......@@ -1989,7 +1989,7 @@ static void free_tables(H264Context *h){
for(i = 0; i < h->s.avctx->thread_count; i++) {
for(i = 0; i < MAX_THREADS; i++) {
hx = h->thread_context[i];
if(!hx) continue;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment