I have incorporated your proposal and have added the buffer directly to
H2645RBSP. This allowed to simplify the uninit process, as you already
predicted.


Andreas Rheinhardt (2):
  h2645_parse: Make ff_h2645_packet_split reference-compatible
  cbs_h2645: Avoid memcpy when splitting fragment #2

 libavcodec/cbs_h2645.c             | 33 +++++++------------
 libavcodec/extract_extradata_bsf.c |  2 +-
 libavcodec/h2645_parse.c           | 53 ++++++++++++++++++++++++++++--
 libavcodec/h2645_parse.h           |  9 ++++-
 libavcodec/h264_parse.c            |  2 +-
 libavcodec/h264dec.c               |  4 +--
 libavcodec/hevc_parse.c            |  3 +-
 libavcodec/hevc_parser.c           |  2 +-
 libavcodec/hevcdec.c               |  2 +-
 9 files changed, 77 insertions(+), 33 deletions(-)

-- 
2.19.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to