After some searching, I found out that in some decoders the incoming
avframe pointer is unreferenced using
av_frame_unref api, and then
ff_get_buffer is called.
Can someone please explain why such things are done ! I am so much confused

.
Regards,
Sunny.