lavc: add ff_init_buffer_info()

Fixes seeking per fileposition in ffplay.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2011-10-07 02:11:06 +02:00
parent 5ec55d216e
commit b93cb8383f
3 changed files with 27 additions and 0 deletions

View File

@@ -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);