Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-05 23:25:22 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-04-05 23:25:29 +0300
commit39c6834c12a5627392904d0c8123c710c611a71b (patch)
treebc9646afa6e6a69bf9fc08f82499b8c41039664d /libavcodec
parent097efa475056e38dba8a194ff841a6ab4f1f847b (diff)
parentbd737b5178f361a9b592691848f29a7a79603a7e (diff)
Merge commit 'bd737b5178f361a9b592691848f29a7a79603a7e'
* commit 'bd737b5178f361a9b592691848f29a7a79603a7e': h264: reset the private data in init_thread_copy() Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 95ceca639f..5dd187d2b5 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -713,8 +713,8 @@ static int decode_init_thread_copy(AVCodecContext *avctx)
if (!avctx->internal->is_copy)
return 0;
- memset(h->sps_buffers, 0, sizeof(h->sps_buffers));
- memset(h->pps_buffers, 0, sizeof(h->pps_buffers));
+
+ memset(h, 0, sizeof(*h));
ret = h264_init_context(avctx, h);
if (ret < 0)