add maintenance of multiple frames in one AVPacket