Quoting Mark Thompson (2017-05-14 23:24:10)
> +int ff_cbs_insert_unit(CodedBitstreamContext *ctx,
> + CodedBitstreamFragment *frag,
> + int position, int type, void *content)
> +{
> + int err;
> +
> + if (position == -1)
> + position = frag->nb_units;
> + if (position < 0 || position > frag->nb_units)
> + return AVERROR(EINVAL);
> +
> + err = av_reallocp_array(&frag->units,
> + frag->nb_units + 1,
> + sizeof(*frag->units));
If I'm reading right, units themselves need to be uninited, so reallocp
is not what you want here.
--
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel