avcodec/cbs: create reference counted fragments in ff_cbs_read_extradata()
authorJames Almer <jamrial@gmail.com>
Wed, 25 Apr 2018 22:27:04 +0000 (19:27 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 26 Apr 2018 23:03:05 +0000 (20:03 -0300)
commitdff1fb27aaf076da1912366191e593834cecf841
treeb73fcef43dff26b3b504e1c2b348e0d532802008
parent6a955750d6705ba43b1268af7f23fe8310aa61f8
avcodec/cbs: create reference counted fragments in ff_cbs_read_extradata()

This way, every CodedBitstreamType->split_fragment() function can
safely assume the fragment passed to them will be reference counted,
potentially simplifying code.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/cbs.c