Yes I  initialize the pict_src to use
 av_picture_copy(buf->picture,
&pict_src,pCodecCtx->pix_fmt,pCodecCtx->width, pCodecCtx->height);
to copy

but there is something around the av_picture_ copy before the copy I have
pict_src.linesize[0] equal to 752 and after 720 ...

I learned av_picture_copy fromm ffplay.c

Many thanks for the help because I code with libavcodec only  1 month after
reading dranger docs and ffplay sources..

Gilles M

2011/1/31 Кирилл Гаврилов <[email protected]>

> >
> > when I want to copy the Picture to the buffer  I do :
> >        AVPicture pict_src;
> >        pict_src.data[0] = pFrame->data[0];
> >        pict_src.data[1] = pFrame->data[1];
> >        pict_src.data[2] = pFrame->data[2];
> >        pict_src.linesize[0] = pFrame->linesize[0];
> >        pict_src.linesize[1] = pFrame->linesize[1];
> >        pict_src.linesize[2] = pFrame->linesize[2];
> >
> At first - you didn't copy the buffer data.
> You copy pointers to the data (and these pointers actually manged by
> decoder)!
>
> -----------------------------------------------
> Kirill Gavrilov,
> Software designer.
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to