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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user