Luca Barbato wrote:
On 10/01/13 09:01, Andreas Öman wrote:
Me neither.

FWIW, in my code i have an fixed size array (currently 64 items) of my own
metadata struct.

I then just use reordered_opaque as an index to this array and keep
incrementing
reordered_opaque for every new packet and let it wrap at 64.

This obviously assumes that the decoder delay is always < 64 frames. But in
reality
that's of course not a problem.

With this approach i don't have to worry about free()ing any
allocated auxiliary struct
when packets are flushed from the decoder, etc.

That could be an interesting practice.

I do something like that for some hardware decoders,
but I mind my resources and have it capped at 32 :)

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to