I'm not sure what you mean. The only sense in which this returns a size is the buffer size in the sample,
Yes, that's the size I mean.
whose alignment is a gstreamer requirement. We would need to modify gstreamer to change that.
Is that actually the case? GStreamer has a default alignment for any given format, but we can and do change that. That's the point of all that complicated alignment logic we have. Is some component rejecting alignment *below* the default?
I wasn't able to make an h264 frame which worked, so I have no test for it.
Hmm, what happens when you try?
If you can't get one that works, can you at least try the one from whatever application triggers the bug, to confirm that this is the correct way to solve this?