I want to copy AVFrames  in a pointer list ie

struct BuffVideo{
AVFrame        *pFrame;
int  Id;
struct BuffVideo * next  ;
}BuffVideo ;

I make  a

struct BuffVideo *buf= malloc( sizeof (BuffVideo)) ;
buf->pFrame=avcodec_alloc_frame();
buf->id=i++;


....

avcodec_decode_video2(pCodecCtx, buf->pFrame, &frameFinished, &packet);

but when all is done and when I want to swscale all my frame in list, all
the frame are empty unless the last one with the last value of frame
decoded.

I suppose the AVFrame keep only pointer to uint[4] ...

Idea ?

Gilles M
_______________________________________________
libav-user mailing list
libav-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to