[FFmpeg-cvslog] r21508 - trunk/libavcodec/h264_parser.c
benoit
subversion
Thu Jan 28 14:04:25 CET 2010
Author: benoit
Date: Thu Jan 28 14:04:25 2010
New Revision: 21508
Log:
Initialize thread_context[0] with h264 parser context.
This allows freeing the parser memory in the thread_context freeing loop.
Patch by Rafa?l Carr? gmailify(rafael, carre)
Modified:
trunk/libavcodec/h264_parser.c
Modified: trunk/libavcodec/h264_parser.c
==============================================================================
--- trunk/libavcodec/h264_parser.c Thu Jan 28 12:37:35 2010 (r21507)
+++ trunk/libavcodec/h264_parser.c Thu Jan 28 14:04:25 2010 (r21508)
@@ -309,11 +309,17 @@ static void close(AVCodecParserContext *
ff_h264_free_context(h);
}
+static int init(AVCodecParserContext *s)
+{
+ H264Context *h = s->priv_data;
+ h->thread_context[0] = h;
+ return 0;
+}
AVCodecParser h264_parser = {
{ CODEC_ID_H264 },
sizeof(H264Context),
- NULL,
+ init,
h264_parse,
close,
h264_split,
More information about the ffmpeg-cvslog
mailing list