From: Loren Merritt Date: Tue, 19 Dec 2006 09:35:45 +0000 (+0000) Subject: fix a crash with x264_encoder_headers() + threads X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=34c6fb35ac799907caed6ad1cbbc287136c6b6c6;p=x264.git fix a crash with x264_encoder_headers() + threads git-svn-id: svn://svn.videolan.org/x264/trunk@612 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/encoder.c b/encoder/encoder.c index 7c7d49fd..b278f6bb 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -802,6 +802,7 @@ int x264_encoder_headers( x264_t *h, x264_nal_t **pp_nal, int *pi_nal ) /* now set output*/ *pi_nal = h->out.i_nal; *pp_nal = &h->out.nal[0]; + h->out.i_nal = 0; return 0; }