On Wed Sep 18 13:15:47 2024 +0000, Emil Velikov wrote:
Assuming this is going to be a hot path, would it make sense to wrap sample->data instead of copying? Not sure if libav has API (flexible) for this though. Edit: at a glance it seems like av_packet_from_data() could work
Maybe, but I don't think it matters so much here. It's just reading compressed samples here, so copy size stays relatively small.