Quoting Andreas Rheinhardt (2023-09-19 21:57:06) >avcodec/hevcdec: Use RefStruct API for RefPicListTap buffer ^ b
> Given that the RefStruct API relies on the user to know > the size of the objects and does not provide a way to get it, Is there a reason you decided not to provide it, or there just wasn't any code that would be improved by it? > we need to store the number of elements allocated ourselves; > but this is actually better than deriving it from the size > in bytes. > > Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> > --- > libavcodec/hevc_refs.c | 14 ++++++++------ > libavcodec/hevcdec.c | 5 ++--- > libavcodec/hevcdec.h | 3 ++- > 3 files changed, 12 insertions(+), 10 deletions(-) The actual code looks good. -- Anton Khirnov _______________________________________________ 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".