Loop up to MAX_THREADS instead of h->s.avctx->thread_count to free the thread
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 10 Apr 2009 14:30:04 +0000 (14:30 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 10 Apr 2009 14:30:04 +0000 (14:30 +0000)
commit6752dd5aeeca9b6180d9fe0827fd438af426556e
tree59a77277223bc2c473759c63b11d2cbdd444ff50
parentede0e475070298e2bc85870c08c74b33982110dd
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://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c