On Fri, 10 Dec 2021 19:06:15 +0100 Marton Balint <c...@passwd.hu> wrote: > Don't we already have av_format_inject_global_side_data() for something > like this? It is not enabled by default however, only for ffplay, but I am > not sure why.
Indeed, that seems to do exactly what we need - while testing though I noticed that it only adds the side data on the first AVPacket. So my current solution was *almost* right, I just need to persist it across frames inside the decoder. That solves the problem elegantly, IMO. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".