---
libavcodec/pthread.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 5c947b9..042a1c2 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -624,14 +624,16 @@ int ff_get_buffer(AVCodecContext *avctx, AVFrame *f)
PerThreadContext *p = avctx->thread_opaque;
f->owner = avctx;
- f->thread_opaque = progress = av_malloc(sizeof(int));
+ f->thread_opaque = progress = av_malloc(sizeof(int)*2);
if (!USE_FRAME_THREADING(avctx)) {
- *progress = INT_MAX;
+ progress[0] =
+ progress[1] = INT_MAX;
return avctx->get_buffer(avctx, f);
}
- *progress = -1;
+ progress[0] =
+ progress[1] = -1;
pthread_mutex_lock(&p->buffer_mutex);
ret = avctx->get_buffer(avctx, f);
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc