aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pthread.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-07 02:11:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-07 02:29:31 +0200
commitb93cb8383fec0aa95b735fcd97eff03425e79bc1 (patch)
treecb6807ba58e1ae79160f88ffb8662650c8458f23 /libavcodec/pthread.c
parent5ec55d216ef05ceb877a158c7d65e072df8b71f9 (diff)
downloadffmpeg-b93cb8383fec0aa95b735fcd97eff03425e79bc1.tar.gz
lavc: add ff_init_buffer_info()
Fixes seeking per fileposition in ffplay. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r--libavcodec/pthread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 08104914ee..454e51f555 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -32,6 +32,7 @@
#include <pthread.h>
#include "avcodec.h"
+#include "internal.h"
#include "thread.h"
typedef int (action_func)(AVCodecContext *c, void *arg);
@@ -787,6 +788,8 @@ int ff_thread_get_buffer(AVCodecContext *avctx, AVFrame *f)
f->owner = avctx;
+ ff_init_buffer_info(avctx, f);
+
if (!(avctx->active_thread_type&FF_THREAD_FRAME)) {
f->thread_opaque = NULL;
return avctx->get_buffer(avctx, f);