Hi, I have a question regarding the avcodec_decode_video2 function. What I do is
I pass a pointer to video frame data that are stored in a circular buffer (I
dont do a copy). Since I am not copying the data locally and just passing the
pointer to data, should I be of any concern that the existing subsequent data
will get corrupted by this function call, i.e. extra data will be overwritten or
data itself will be different than what it was when I passed in? I am seeing
some corruptions and I am not sure whats causing it. Before I pass the data to
this function, I dump the content of the pointer and I diff the dumped data with
original and they match exactly. However I see a lot of artifacts all over the
place. Since each of the frame data matches exactly with the original source
data, I am clueless as to what causes the artifacts. If I memcpy the data,
everything is fine. 

If I dump the data after that function, there are differences in data. It would
be ok if the particular frame that got decoded gets correupted, but what might
be hapenning in my case is that the data gets corrupted for future frames. But
then why isnt there any difference?      

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

Reply via email to