libavcodec: fix side data split with 0 sized packets