projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
592e03a
)
Initialize thread_context[0] with h264 parser context.
author
Rafaël Carré
<rafael.carre@gmail.com>
Thu, 28 Jan 2010 13:04:25 +0000
(13:04 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Thu, 28 Jan 2010 13:04:25 +0000
(13:04 +0000)
This allows freeing the parser memory in the thread_context freeing loop.
Patch by Rafaël Carré gmailify(rafael, carre)
Originally committed as revision 21508 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264_parser.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/h264_parser.c
b/libavcodec/h264_parser.c
index
dabd475
..
d9af8c9
100644
(file)
--- a/
libavcodec/h264_parser.c
+++ b/
libavcodec/h264_parser.c
@@
-309,11
+309,17
@@
static void close(AVCodecParserContext *s)
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,