Hi,

I have a question about the AVPacket structure. There is a priv field. I
assume it is for private datas.

But are the datas written in the packet ?

For example,
int test = 23;
_packet.priv = (void *)&test;
av_write_frame (_formatContext, &_packet);

Then, if I want to read this data when I decode the video:
int* test = (int*)_packet.priv;


But it don't seem to be correct because I always get a core dump when I try
to read the datas.

I don't know what is wrong.

Nicolas Krieger
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to